linux_dsm_epyc7002/drivers/infiniband/hw
Christophe Jaillet fffd68734d IB/mlx5: Fix the size parameter to find_first_bit
The 2nd parameter of 'find_first_bit' is the number of bits to search.
In this case, we are passing 'sizeof(tmp)' which is likely to be 4 or 8
because 'tmp' is an 'unsigned long'.

It is likely that the number of bits of 'tmp' was expected here. So use
BITS_PER_LONG instead.

It has been spotted by the following coccinelle script:
@@
expression ret, x;

@@
*  ret = \(find_first_bit \| find_first_zero_bit\) (x, sizeof(...));

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Majd Dibbiny <majd@mellanox.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-09-02 13:46:12 -04:00
..
cxgb3 Merge branches 'cxgb4' and 'mlx5' into k.o/for-4.8 2016-08-03 20:58:45 -04:00
cxgb4 iw_cxgb4: Fix cxgb4 arm CQ logic w/IB_CQ_REPORT_MISSED_EVENTS 2016-08-23 12:52:52 -04:00
hfi1 IB/hfi1: Clean up type used and casting 2016-08-26 10:01:49 -04:00
i40iw i40iw: Receive notification events correctly 2016-08-26 09:59:13 -04:00
mlx4 IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one 2016-08-22 14:26:53 -04:00
mlx5 IB/mlx5: Fix the size parameter to find_first_bit 2016-09-02 13:46:12 -04:00
mthca Merge branches 'misc' and 'rxe' into k.o/for-4.8-1 2016-08-04 11:13:47 -04:00
nes IB/nes: Support device FW version string 2016-06-23 12:08:34 -04:00
ocrdma RDMA/ocrdma: Fix the max_sge reported from FW 2016-08-24 11:31:40 -04:00
qib IB/qib: Use memdup_user() rather than duplicating its implementation 2016-08-23 12:38:24 -04:00
usnic IB/usnic: Fix error return code 2016-08-22 14:31:43 -04:00
Makefile IB/hfi1: Move driver out of staging 2016-05-26 11:35:14 -04:00