]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: hisi_sas: use safe BITS_PER_BYTE for slot tag size calculation
authorJohn Garry <john.garry@huawei.com>
Tue, 6 Sep 2016 15:36:15 +0000 (23:36 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 16:54:17 +0000 (12:54 -0400)
commit433f569601402d6b1f0df17b75327aed082680a4
treebe5c45cdcce6ba946b2a2b3cd921ef670f671035
parent59ba49f9d6ab0b265f692ae37d9787d6dbb39f00
scsi: hisi_sas: use safe BITS_PER_BYTE for slot tag size calculation

The memory calculation for the tags bitmap should use BITS_PER_BYTE
macro instead of coincidental same value of sizeof(unsigned long).

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c