From: Haggai Eran Date: Sun, 18 May 2014 08:12:24 +0000 (+0300) Subject: IB/core: Remove unneeded kobject_get/put calls X-Git-Tag: omap-for-v3.16/fixes-against-rc1~68^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=373c0ea181c8d277a4a51bbd705189a6a030b81c;p=pandora-kernel.git IB/core: Remove unneeded kobject_get/put calls The ib_core module will call kobject_get on the parent object of each kobject it creates. This is redundant since kobject_add does that anyway. As a side effect, this patch should fix leaking the ports kobject and the device kobject during unregister flow, since the previous code didn't seem to take into account the kobject_get calls on behalf of the child kobjects. Signed-off-by: Haggai Eran Signed-off-by: Roland Dreier --- Reading git-diff-tree failed