James Bottomley a91c1be217 [SCSI] enclosure: fix error path - actually return ERR_PTR() on error
we also need to clean up and free the cdev.

Reported-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-07-27 12:03:48 -05:00
..
2010-03-12 15:52:44 -08:00
2009-12-11 11:24:51 -08:00
2009-05-06 16:36:10 -07:00
2010-03-13 20:56:54 +01:00