scsi: aacraid: Get correct lun count
The correct lun count needs to be divided by 24, missed it in the
previous patch set.
Fixes: 4b00022753
(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>
This commit is contained in:
parent
80c716fad8
commit
bbd16d96d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user