Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] qla2xxx: fix lock imbalance

Stanse found that one error path in qla24xx_bsg_timeout omits to
unlock ha->hardware_lock. Fix that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Jiri Slaby and committed by
James Bottomley
bc0beb44 67221a42

+1
+1
drivers/scsi/qla2xxx/qla_attr.c
··· 2393 2393 return 0; 2394 2394 2395 2395 done: 2396 + spin_unlock_irqrestore(&ha->hardware_lock, flags); 2396 2397 if (bsg_job->request->msgcode == FC_BSG_HST_CT) 2397 2398 kfree(sp->fcport); 2398 2399 kfree(sp->ctx);