From: Haggai Eran Date: Sun, 18 May 2014 08:12:25 +0000 (+0300) Subject: IB/core: Fix port kobject deletion during error flow X-Git-Tag: omap-for-v3.16/fixes-against-rc1~68^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cad6d02acc13b6360e4525f86adb6a8932501e15;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed