OSDN Git Service

megaraid_sas: Add missing initial call to megasas_get_ld_vf_affiliation().
authorAdam Radford <aradford@gmail.com>
Wed, 9 Jul 2014 22:17:57 +0000 (15:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:53 +0000 (09:09 -0700)
The following patch for megaraid_sas adds a missing initial call to
megasas_get_ld_vf_affiliation() at the end of megasas_probe_one().

Signed-off-by: Adam Radford <aradford@gmail.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid/megaraid_sas_base.c

index 24e4116..3970002 100644 (file)
@@ -4984,6 +4984,10 @@ retry_irq_register:
                goto fail_start_aen;
        }
 
+       /* Get current SR-IOV LD/VF affiliation */
+       if (instance->requestorId)
+               megasas_get_ld_vf_affiliation(instance, 1);
+
        return 0;
 
       fail_start_aen: