From: James Bottomley Date: Fri, 20 Jul 2007 21:50:10 +0000 (-0500) Subject: [SCSI] bsg: fix bsg_register_queue error path X-Git-Tag: v2.6.23-rc1~7^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6826ee4fdbe24c7aab56ce833ef94be81d190587;p=pandora-kernel.git [SCSI] bsg: fix bsg_register_queue error path unfortunately, if IS_ERR(class_dev) is true, that means class_dev isn't null and the check in the error leg is pointless ... it's also asking for trouble to request unregistration of a device we haven't actually created (although it works currently). Fix by using explicit gotos and unregisters. Acked-by: FUJITA Tomonori Signed-off-by: James Bottomley --- Reading git-diff-tree failed