diff options
| author | Dave Jones <davej@fedoraproject.org> | 2014-04-07 15:39:32 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-28 15:14:06 +0200 |
| commit | f0eaf96c524b819915997d6fafb9976183251fa4 (patch) | |
| tree | 9d86236ec5f2a7e13a905d3c3facd1f817174544 /include/linux/interval_tree.h | |
| parent | 69bb55d73640d7e6d64a75065dbfb06ade4b4352 (diff) | |
slub: fix leak of 'name' in sysfs_slab_add
The failure paths of sysfs_slab_add don't release the allocation of
'name' made by create_unique_id() a few lines above the context of the
diff below. Create a common exit path to make it more obvious what
needs freeing.
[vdavydov@parallels.com: free the name only if !unmergeable]
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: W4TCH0UT <ateekujjawal@gmail.com>
Diffstat (limited to 'include/linux/interval_tree.h')
0 files changed, 0 insertions, 0 deletions
