]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: Handle interrupt registration failures more gracefully.
authorChad Dupuis <chad.dupuis@qlogic.com>
Tue, 6 Dec 2011 19:53:04 +0000 (14:53 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 23 Jul 2012 08:02:41 +0000 (01:02 -0700)
commit02269ad0b22359ac9b33a389b349dca6e44f497f
tree011172d2aa530e99b4e4a0dcc1ca2a90d3d675d2
parente6b06f9bf23812668a2d993830be2cf615fae2bb
qla2xxx: Handle interrupt registration failures more gracefully.

If interrupt registration failed we could crash the machine as we were trying
to deference some pointers which weren't allocated yet.  Move the allocation
a little earlier and make some checks to the free resource code to make sure
that we don't try to free a resource that was never allocated.

JIRA Key: V2632FC-155
drivers/scsi/qla2xxx/qla_isr.c
drivers/scsi/qla2xxx/qla_os.c