]> git.baikalelectronics.ru Git - kernel.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)
commit151b6181c812e9025621d8421c7762e2b34a1d23
tree0d53ebcb95ebc4f9e7763dce80f7834666c3d094
parent375c60a24f9701d1a4118a9a38c4d3abc0a15dc8
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