Re: [PATCH] Block: mtip32xx: Improvement in code readability when memdup_user() fails.
From: Jens Axboe
Date: Fri Nov 11 2016 - 15:38:00 EST
On 11/11/2016 02:04 AM, Sachin Shukla wrote:
From: "Sachin Shukla" <sachin.s5@xxxxxxxxxxx>
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.
Applied for 4.10, thanks.
--
Jens Axboe