aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptsas.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r--drivers/message/fusion/mptsas.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index 030bb8389aee..d50664640512 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -3301,6 +3301,8 @@ static struct pci_driver mptsas_driver = {
3301static int __init 3301static int __init
3302mptsas_init(void) 3302mptsas_init(void)
3303{ 3303{
3304 int error;
3305
3304 show_mptmod_ver(my_NAME, my_VERSION); 3306 show_mptmod_ver(my_NAME, my_VERSION);
3305 3307
3306 mptsas_transport_template = 3308 mptsas_transport_template =
@@ -3324,7 +3326,11 @@ mptsas_init(void)
3324 ": Registered for IOC reset notifications\n")); 3326 ": Registered for IOC reset notifications\n"));
3325 } 3327 }
3326 3328
3327 return pci_register_driver(&mptsas_driver); 3329 error = pci_register_driver(&mptsas_driver);
3330 if (error)
3331 sas_release_transport(mptsas_transport_template);
3332
3333 return error;
3328} 3334}
3329 3335
3330static void __exit 3336static void __exit