]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] mpt2sas: Sanity check for phy count is added using max phy count
authorKashyap, Desai <kashyap.desai@lsi.com>
Fri, 12 Nov 2010 23:10:51 +0000 (04:40 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:08 +0000 (12:24 -0600)
commitb41c09d1afc2708b3fab395085f538e1fce9b571
treec92b67bd0f4aad01351bc383b32e01ef23a8e420
parenta93c6b45df57332b1703e0dc6f99a1bafc17f5e3
[SCSI] mpt2sas: Sanity check for phy count is added using max phy count

Fix oops loading driver when there is direct attached
SEP device

The driver set max phys count to the value reported in sas iounit page
zero.  However this page doesn't take into account additional virutal
phys.  When sas topology event arrives, the phy count is larger than
expected, and the driver accesses memory array beyond the end of
allocated space, then oops.  Manufacturing page 8 contains the info
on direct attached phys.

For this fix will making sure that sas topology event is not
processing phys greater than the expected phy count.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c