From cad6d02acc13b6360e4525f86adb6a8932501e15 Mon Sep 17 00:00:00 2001 From: Haggai Eran Date: Sun, 18 May 2014 11:12:25 +0300 Subject: [PATCH] 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-format-patch failed