SCSI: enclosure: fix error path - actually return ERR_PTR() on error
commit a91c1be2 upstream. we also need to clean up and free the cdev. Reported-by:Jani Nikula <ext-jani.1.nikula@nokia.com> Signed-off-by:
James Bottomley <James.Bottomley@suse.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
Please register or sign in to comment