]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:20:44 +0000 (10:20 -0700)
commit0c7607070fcdb517a4f315b2150a2d05b6b00e7c
tree23ac8a94b1930e1d6ea95853326177c039ede912
parent7a4c13ac72f77cbbaa780c7a53e6bb8d586ff2d9
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 <ext-jani.1.nikula@nokia.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/enclosure.c