From: Jason Gunthorpe Date: Tue, 4 Aug 2015 21:23:34 +0000 (-0600) Subject: IB/core: Make ib_alloc_device init the kobject X-Git-Tag: omap-for-v4.3/fixes-rc1~52^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55aeed06544f675f25aef06a8c47b0b6b8850f4f;p=pandora-kernel.git IB/core: Make ib_alloc_device init the kobject This gets rid of the weird in-between state where struct ib_device was allocated but the kobject didn't work. Consequently ib_device_release is now guaranteed to be called in all situations and we needn't duplicate its kfrees on error paths. Signed-off-by: Jason Gunthorpe Signed-off-by: Doug Ledford --- Reading git-diff-tree failed