]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: megaraid_sas: Fix the search of first memory bar
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 21 Aug 2016 08:28:25 +0000 (10:28 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 28 Feb 2017 04:40:05 +0000 (20:40 -0800)
commitb374417369545d63b8b1e3ed46b56d72fadae648
tree126a5a605fa686540253e62c4d56058d48ed7c74
parent2b2d8e1d2074aa533d2d92c732ad5acbcb970714
scsi: megaraid_sas: Fix the search of first memory bar

Orabug: 25568930

The 2nd parameter of 'find_first_bit' is the number of bits to search.
In this case, we are passing 'sizeof(unsigned long)' which is likely to
be 4.

It is likely that the number of bits in a long was expected here, so use
BITS_PER_LONG instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 51f9039ffd751dee54fe26609df645bfd128b1d0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/scsi/megaraid/megaraid_sas_base.c
drivers/scsi/megaraid/megaraid_sas_base.c