[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87d4kwalh1.fsf@devron.myhome.or.jp>
Date: Tue, 29 Jul 2008 22:06:18 +0900
From: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To: "Darren Jenkins" <darrenrjenkins@...il.com>
Cc: kernel Janitors <kernel-janitors@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] fs/fat/dir.c fix resource leak
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp> writes:
> "Darren Jenkins\" <darrenrjenkins@...il.com> writes:
>
>> Coverity CID 2332 & 2333 RESOURCE_LEAK
>>
>> In fat_search_long() if fat_parse_long() returns a -ve value we return
>> without first freeing unicode and bufname.
>> This patch free's them on this error path.
>>
>> Signed-off-by: Darren Jenkins <darrenrjenkins@...ilcom>
>
> I'll apply to current code. Thanks.
I noticed this is false positive. bufname is not used anymore, and
fat_parse_long() never returns error after allocating unicode.
Instead, I'll apply this as cleanup.
--
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists