summaryrefslogtreecommitdiff
path: root/drivers/scsi/pmcraid.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-11-17 21:25:16 -0600
committerJames Bottomley <James.Bottomley@suse.de>2009-12-10 08:54:11 -0600
commit48de68a40aef032a2e198437f4781a83bfb938db (patch)
treef3a1a5159ec2994dfca79b560a1a8a09eb66f7ed /drivers/scsi/pmcraid.c
parentd685c262083dcd5fd98b7499b22a377a3225229c (diff)
downloadlinux-3.10-48de68a40aef032a2e198437f4781a83bfb938db.tar.gz
linux-3.10-48de68a40aef032a2e198437f4781a83bfb938db.tar.bz2
linux-3.10-48de68a40aef032a2e198437f4781a83bfb938db.zip
[SCSI] fc class: fix fc_transport_init error handling
If transport_class_register fails we should unregister any registered classes, or we will leak memory or other resources. I did a quick modprobe of scsi_transport_fc to test the patch. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Cc: Stable Tree <stable@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
0 files changed, 0 insertions, 0 deletions