[SCSI] enclosure: fix error path - actually return ERR_PTR() on error
we also need to clean up and free the cdev. Reported-by: NJani Nikula <ext-jani.1.nikula@nokia.com> Cc: Stable Tree <stable@kernel.org> Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
Showing
想要评论请 注册 或 登录