staging: dgap: unwind on error in dgap_found_board()
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 29 May 2014 09:11:09 +0000 (18:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:19:06 +0000 (15:19 -0700)
commitf86c55c9654da49d0bd401634cf679f410dfeb8d
treec935b5d501114141ebf4865cae716de9645a4cd2
parent836bf241d8062490698e9238e805f7847f3fb179
staging: dgap: unwind on error in dgap_found_board()

Adds a label for "kfree(brd)". And also remove
a state value as BOARD_FAILED in brd when dgap_do_remap() is failed.
Because "brd" will free after failure.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c