[SCSI] enclosure: fix error path - actually return ERR_PTR() on error
authorJames Bottomley <James.Bottomley@suse.de>
Fri, 12 Mar 2010 22:14:42 +0000 (16:14 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:03:48 +0000 (12:03 -0500)
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>

No differences found