[SCSI] mpt fusion: Avoid racing when mptsas and mptcl module are loaded in parallel
authorPrakash, Sathya <sathya.prakash@lsi.com>
Fri, 8 Feb 2008 11:05:40 +0000 (16:35 +0530)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 11 Feb 2008 16:20:53 +0000 (10:20 -0600)
commit07df8afa0dd54b8b89ad8aa93994c0d55a4a5921
treea6542ea7c87147d21d8e65cacd8d7feb6e2a6941
parent90a95af85f22c82f87e5fb714bac7ee06673b0ff
[SCSI] mpt fusion: Avoid racing when mptsas and mptcl module are loaded in parallel

This patch sets the IOC pointer in drvrdata of pcidev before adding
the IOC into the list of IOCs. Without this patch the driver oops when
the mptsas and mptctl modules are loaded in parallel.

Signed-off-by: Sathya Prakash <sathya.prakash@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/message/fusion/mptbase.c