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.36-rc1~570^2~152 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91c1be21704113b023919826c6d531da46656ef;p=pandora-kernel.git [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 Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed