staging: vme: fix memory leak in vme_user_probe()
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 26 Mar 2014 03:01:48 +0000 (12:01 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 21:46:43 +0000 (14:46 -0700)
commit1a52489318c16aaff71059b3892a1a2f3bb8ecec
tree1c5162477fe64b84cb30963c017ce318702ae7b1
parentd06fb58cb63c66ddcc2ac94edf99f505f4919da0
staging: vme: fix memory leak in vme_user_probe()

If vme_master_request() returns NULL when it failed,
it need to free buffers for master.

And also removes unreachable code in vme_user_probe().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c
This page took 0.031454 seconds and 5 git commands to generate.