diff options
| author | Xiaotian Feng <[email protected]> | 2009-07-23 23:06:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2009-07-27 02:20:51 +0000 |
| commit | c587aea951a56d29741a3cef4ea3e142c93b3207 (patch) | |
| tree | 39045309a2d2ce8fe51bca6d08588cf97e0ee27c /lib/dynamic_debug.c | |
| parent | smc91x.h: add config for Nomadik evaluation kit (diff) | |
| download | kernel-c587aea951a56d29741a3cef4ea3e142c93b3207.tar.gz kernel-c587aea951a56d29741a3cef4ea3e142c93b3207.zip | |
net/bridge: use kobject_put to release kobject in br_add_if error path
kobject_init_and_add will alloc memory for kobj->name, so in br_add_if
error path, simply use kobject_del will not free memory for kobj->name.
Fix by using kobject_put instead, kobject_put will internally calls
kobject_del and frees memory for kobj->name.
Signed-off-by: Xiaotian Feng <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
