Skip to content

Commit 51b910c

Browse files
tititiou36martinkpetersen
authored andcommitted
scsi: qlogicpti: Fix an error handling path in 'qpti_sbus_probe()'
The 'free_irq()' call is not at the right place in the error handling path. The changed order has been introduced in commit 3d4253d ("[SCSI] qlogicpti: Convert to new SBUS device framework.") Fixes: 3d4253d ("[SCSI] qlogicpti: Convert to new SBUS device framework.") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 10e5e37 commit 51b910c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/scsi/qlogicpti.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1385,16 +1385,16 @@ static int qpti_sbus_probe(struct platform_device *op)
13851385
qpti->req_cpu, qpti->req_dvma);
13861386
#undef QSIZE
13871387

1388+
fail_free_irq:
1389+
free_irq(qpti->irq, qpti);
1390+
13881391
fail_unmap_regs:
13891392
of_iounmap(&op->resource[0], qpti->qregs,
13901393
resource_size(&op->resource[0]));
13911394
if (qpti->is_pti)
13921395
of_iounmap(&op->resource[0], qpti->sreg,
13931396
sizeof(unsigned char));
13941397

1395-
fail_free_irq:
1396-
free_irq(qpti->irq, qpti);
1397-
13981398
fail_unlink:
13991399
scsi_host_put(host);
14001400

0 commit comments

Comments
 (0)