scsi: aacraid: Get correct lun count
authorRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Wed, 10 Jan 2018 21:13:09 +0000 (13:13 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:11 +0000 (23:25 -0500)
The correct lun count needs to be divided by 24, missed it in the
previous patch set.

Fixes: 4b00022753550055 (scsi: aacraid: Create helper functions to get lun info)
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aachba.c

index 525d72fcbf3eb54b42b7f3ae1941570401c7cc2d..e7961cbd2c55ab81020084730e8ec19f45aeda7d 100644 (file)
@@ -1865,7 +1865,7 @@ mem_free_all:
 
 static inline u32 aac_get_safw_phys_lun_count(struct aac_dev *dev)
 {
-       return get_unaligned_be32(&dev->safw_phys_luns->list_length[0]);
+       return get_unaligned_be32(&dev->safw_phys_luns->list_length[0])/24;
 }
 
 static inline u32 aac_get_safw_phys_bus(struct aac_dev *dev, int lun)