]> git.karo-electronics.de Git - linux-beck.git/commit
staging: dgnc: kfree for board structure in dgnc_found_board()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 26 Sep 2016 00:42:02 +0000 (09:42 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:12:25 +0000 (13:12 +0200)
commit467132b029fedbffef2e252f2caff4f9dd9a59ff
treea3eed00a7f05a175e1724f18f31112d6e743a9a4
parentb09f0cd53f83f937a4e8b58298dbba981b72428b
staging: dgnc: kfree for board structure in dgnc_found_board()

The board structure should be freed when any function was failed
in dgnc_found_board(). And the board strucure will be stored
into dgnc_board array when the dgnc_found_board() function has no error.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c