From: Junjie Mao Date: Wed, 28 Jan 2015 02:02:44 +0000 (+0800) Subject: driver core: bus: Goto appropriate labels on failure in bus_add_device X-Git-Tag: omap-for-v4.1/fixes-rc1~166^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c34203a1496d1849ba978021b878b3447d433c8;p=pandora-kernel.git driver core: bus: Goto appropriate labels on failure in bus_add_device It is not necessary to call device_remove_groups() when device_add_groups() fails. The group added by device_add_groups() should be removed if sysfs_create_link() fails. Fixes: fa6fdb33b486 ("driver core: bus_type: add dev_groups") Signed-off-by: Junjie Mao Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed