From: Cornelia Huck Date: Mon, 18 Feb 2008 16:04:25 +0000 (+0100) Subject: Driver core: Fix error handling in bus_add_driver(). X-Git-Tag: v2.6.25-rc3~96^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0763446429e46fd973f507f79900b95eb8aae2e4;p=pandora-kernel.git Driver core: Fix error handling in bus_add_driver(). - If the allocation of ->priv fails, the reference on the bus must be dropped. - If adding the kobject fails, kobject_put must be called to clean things up. Signed-off-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed