[linux-yocto] [yocto] yaffs: fix a potential memory leakage and missed put_mtd_device
Zumeng Chen
zumeng.chen at windriver.com
Mon May 1 18:22:53 PDT 2017
On 05/01/2017 11:23 AM, Bruce Ashfield wrote:
> On 2017-04-27 11:37 PM, Zumeng Chen wrote:
>> Hi Bruce,
>>
>> This patch is to fix a missed put_mtd_device and potential memory fix
>> for yaffs
>> based on standard/base.
>
> Looks good to me. What kernel versions is this for ? I tried
> it on 4.10 and it applied, but I'm thinking 4.8+ ?
Yes, I applied it into 4.8.x, it should be OK for 4.x.x.
Cheers,
Zumeng
>
> Bruce
>
>>
>> Cheers,
>> Zumeng
>>
>> commit d9b0a935f7a778a85b029f3d6c187d40fe2b9c39
>> Author: Zumeng Chen <zumeng.chen at windriver.com>
>> Date: Fri Apr 28 10:44:41 2017 +0800
>>
>> yaffs: fix potential memory leakage and codes redundant
>>
>> put_mtd_device is match to get_mtd_device to decount users, and
>> also fix
>> the potential memory leakage when failure happens.
>>
>> Signed-off-by: Zumeng Chen <zumeng.chen at windriver.com>
>>
>>
>> Remaining Changes (diffstat):
>> -----------------------------
>> fs/yaffs2/yaffs_vfs.c | 25 ++++++++++++-------------
>> 1 file changed, 12 insertions(+), 13 deletions(-)
>>
>>
>>
>
More information about the linux-yocto
mailing list