• Kashyap, Desai's avatar
    [SCSI] mpt2sas: Sanity check for phy count is added using max phy count · b41c09d1
    Kashyap, Desai authored
    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: default avatarKashyap Desai <kashyap.desai@lsi.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
    b41c09d1
mpt2sas_scsih.c 206 KB