lkml.org 
[lkml]   [2020]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH RESEND] 9p: Fix memory leak in v9fs_mount
From
Date
Is this OK? I don't see it on linux-next

On 2020/6/15 18:20, Dominique Martinet wrote:
> Zheng Bin wrote on Mon, Jun 15, 2020:
>> v9fs_mount
>> v9fs_session_init
>> v9fs_cache_session_get_cookie
>> v9fs_random_cachetag -->alloc cachetag
>> v9ses->fscache = fscache_acquire_cookie -->maybe NULL
>> sb = sget -->fail, goto clunk
>> clunk_fid:
>> v9fs_session_close
>> if (v9ses->fscache) -->NULL
>> kfree(v9ses->cachetag)
>>
>> Thus memleak happens.
>>
>> Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
> Thanks, will run tests & queue next weekend
>

\
 
 \ /
  Last update: 2020-07-09 04:05    [W:0.069 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site