From: Zach Brown Date: Wed, 19 Apr 2006 04:09:22 +0000 (-0700) Subject: [SCSI] qla2xxx: only free_irq() after request_irq() succeeds X-Git-Tag: v2.6.17-rc4~4^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77347ff7554b317a0120cb774b3bd6258a2c4bb4;p=pandora-kernel.git [SCSI] qla2xxx: only free_irq() after request_irq() succeeds If qla2x00_probe_one() fails before calling request_irq() but gets to qla2x00_free_device() then it will mistakenly try to free an irq it didn't request. It's chosing to free based on ha->pdev->irq which is always set. host->irq is set after request_irq() succeeds so let's use that to decide to free or not. This was observed and tested when a silly set of circumstances lead to firmware loading failing on a 2100. Signed-off-by: Zach Brown Signed-off-by: Andrew Morton Signed-off-by: James Bottomley --- Reading git-diff-tree failed