aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorDave Jones <[email protected]>2014-04-07 15:39:32 -0700
committerLinus Torvalds <[email protected]>2014-04-07 16:36:13 -0700
commit54b6a731025f9528d44945a72b1f4e5946bb2d80 (patch)
tree7db33948c9ab6fb39b31d275185e0ce55315ac03 /include/linux/fpga/fpga-mgr.h
parent9a41707bd3a0811919000daf094e9d50ea65f7da (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. [[email protected]: free the name only if !unmergeable] Signed-off-by: Dave Jones <[email protected]> Signed-off-by: Vladimir Davydov <[email protected]> Cc: Pekka Enberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions