aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorZheng Bin <[email protected]>2020-06-15 09:21:53 +0800
committerDominique Martinet <[email protected]>2020-07-19 14:58:47 +0200
commitcb0aae0e31c632c407a2cab4307be85a001d4d98 (patch)
tree36921853f7a5edc29257652cf23fbd77f1caeef3 /lib/memory-notifier-error-inject.c
parent66246641609b3cbfc87e805ded1f018b5c9cecf4 (diff)
9p: Fix memory leak in v9fs_mount
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. Link: http://lkml.kernel.org/r/[email protected] Fixes: 60e78d2c993e ("9p: Add fscache support to 9p") Cc: <[email protected]> # v2.6.32+ Signed-off-by: Zheng Bin <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions