diff options
author | Haggai Eran <haggaie@mellanox.com> | 2014-05-18 12:12:25 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-06-04 21:03:49 +0400 |
commit | cad6d02acc13b6360e4525f86adb6a8932501e15 (patch) | |
tree | d3ccf2ff29f6a5ad4f879c908e84a1856c3a4ff9 /Documentation/kernel-doc-nano-HOWTO.txt | |
parent | 373c0ea181c8d277a4a51bbd705189a6a030b81c (diff) | |
download | linux-cad6d02acc13b6360e4525f86adb6a8932501e15.tar.xz |
IB/core: Fix port kobject deletion during error flow
When encountering an error during the add_port function, adding a port
to sysfs, the port kobject is freed without being deleted from sysfs.
Instead of freeing it directly, the patch uses kobject_put to release
the kobject and delete it.
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'Documentation/kernel-doc-nano-HOWTO.txt')
0 files changed, 0 insertions, 0 deletions