Dave Jones
54b6a73102
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>
2014-04-07 16:36:13 -07:00
..
2014-04-03 16:20:49 -07:00
2014-01-23 16:36:50 -08:00
2013-11-13 12:09:09 +09:00
2013-11-23 22:33:49 -08:00
2014-01-23 16:36:50 -08:00
2014-04-07 16:35:55 -07:00
2011-12-06 09:24:07 +01:00
2012-12-11 17:22:24 -08:00
2013-03-03 22:46:22 -05:00
2012-01-03 22:54:56 -05:00
2013-11-06 12:40:26 +01:00
2014-04-07 16:35:57 -07:00
2014-03-19 16:21:49 -07:00
2013-06-12 16:29:46 -07:00
2012-12-20 08:37:05 -08:00
2014-04-07 16:35:57 -07:00
2014-03-19 10:23:54 -04:00
2014-04-07 16:35:58 -07:00
2014-01-21 16:19:48 -08:00
2011-07-26 16:49:47 -07:00
2014-04-07 16:35:58 -07:00
2012-10-09 16:22:42 +09:00
2014-04-07 16:35:52 -07:00
2012-01-10 16:30:42 -08:00
2010-03-30 22:02:32 +09:00
2011-01-27 18:31:51 +00:00
2014-04-03 16:20:50 -07:00
2014-03-04 07:55:47 -08:00
2014-04-03 16:21:01 -07:00
2011-10-31 09:20:12 -04:00
2013-09-30 14:31:02 -07:00
2014-04-07 16:35:53 -07:00
2014-04-07 16:35:58 -07:00
2014-04-07 16:36:13 -07:00
2014-01-23 16:36:52 -08:00
2014-04-03 13:05:42 -07:00
2014-04-07 16:35:57 -07:00
2014-04-07 16:35:54 -07:00
2014-04-07 16:35:55 -07:00
2014-03-20 22:09:09 -07:00
2014-04-03 16:21:00 -07:00
2014-04-07 16:35:57 -07:00
2014-01-27 21:02:39 -08:00
2014-04-07 16:35:53 -07:00
2014-02-21 08:50:17 +01:00
2014-01-23 16:36:52 -08:00
2013-10-09 14:47:45 +02:00
2014-04-07 16:35:50 -07:00
2013-10-16 21:35:53 -07:00
2010-05-21 18:31:21 -04:00
2014-04-03 16:21:02 -07:00
2014-04-07 16:35:55 -07:00
2014-01-30 16:56:56 -08:00
2014-04-07 16:35:59 -07:00
2014-04-03 16:21:02 -07:00
2014-01-30 11:19:05 -08:00
2013-09-11 15:57:48 -07:00
2014-04-07 16:35:57 -07:00
2013-10-30 14:27:03 -07:00
2010-10-02 10:28:42 +03:00
2012-06-20 14:39:36 -07:00
2014-03-29 09:29:42 -04:00
2013-12-18 19:04:51 -08:00
2014-04-03 16:21:02 -07:00
2011-10-31 09:20:11 -04:00
2014-04-07 16:35:58 -07:00
2014-04-07 16:35:57 -07:00
2014-04-07 16:35:57 -07:00
2014-04-07 16:36:13 -07:00
2014-04-07 16:35:54 -07:00
2014-04-07 16:36:12 -07:00
2013-09-04 20:51:33 +03:00
2014-04-07 16:36:13 -07:00
2014-01-21 16:19:47 -08:00
2014-04-07 16:35:54 -07:00
2014-02-06 13:48:51 -08:00
2014-04-03 16:21:01 -07:00
2014-02-06 13:48:51 -08:00
2014-04-03 16:21:01 -07:00
2014-04-07 16:35:54 -07:00
2014-04-07 16:35:53 -07:00
2014-04-07 16:35:55 -07:00
2014-02-03 13:24:01 -05:00
2014-04-07 16:35:50 -07:00
2014-04-03 16:21:04 -07:00
2014-04-03 16:21:01 -07:00
2013-09-11 15:57:35 -07:00
2014-01-30 16:56:55 -08:00
2014-04-07 16:36:03 -07:00