Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit fc480c27 authored by Mike Christie's avatar Mike Christie Committed by Greg Kroah-Hartman
Browse files

SCSI: fc class: fix fc_transport_init error handling

commit 48de68a4

 upstream.

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: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 14e3cd12
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment