Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]> Signed-off-by: James Bottomley <[email protected]>
- Loading branch information