]> git.karo-electronics.de Git - linux-beck.git/commit
Block: mtip32xx: Improvement in code readability when memdup_user() fails.
authorSachin Shukla <sachin.s5@samsung.com>
Fri, 11 Nov 2016 09:04:51 +0000 (14:34 +0530)
committerJens Axboe <axboe@fb.com>
Fri, 11 Nov 2016 20:37:04 +0000 (13:37 -0700)
commitb425b0201e89e6509032985532a33f1f92ac62a6
tree0d53ebcb95ebc4f9e7763dce80f7834666c3d094
parent066a4a73cee9a44a906b98825e70c47de5bd8b5c
Block: mtip32xx: Improvement in code readability when memdup_user() fails.

There is no need to call kfree() if memdup_user() fails, as no memory
was allocated and the error in the error-valued pointer should be returned.

Signed-off-by: Sachin Shukla <sachin.s5@samsung.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c