From: James Bottomley Date: Fri, 12 Mar 2010 22:14:42 +0000 (-0600) Subject: SCSI: enclosure: fix error path - actually return ERR_PTR() on error X-Git-Tag: v2.6.27.50~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a85ad775e7473d447dc5f9e35b0475ce17497cf3;p=pandora-kernel.git SCSI: enclosure: fix error path - actually return ERR_PTR() on error commit a91c1be21704113b023919826c6d531da46656ef upstream. we also need to clean up and free the cdev. Reported-by: Jani Nikula Signed-off-by: James Bottomley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed