Niklas Cassel 1137e61dcb PCI: dwc: Fix find_next_bit() usage
find_next_bit() takes a parameter of size long, and performs arithmetic
that assumes that the argument is of size long.

Therefore we cannot pass a u32, since this will cause find_next_bit()
to read outside the stack buffer and will produce the following print:
BUG: KASAN: stack-out-of-bounds in find_next_bit+0x38/0xb0

Fixes: 1b497e6493c4 ("PCI: dwc: Fix uninitialized variable in dw_handle_msi_irq()")
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
2019-10-15 16:32:17 +01:00
..
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-07-09 07:24:53 -05:00
2018-03-19 14:20:43 -05:00
2019-09-23 16:10:15 -05:00
2019-09-23 19:16:01 -07:00
2019-07-09 07:24:53 -05:00
2019-09-23 16:10:08 -05:00
2019-07-15 20:44:49 -07:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2018-06-29 21:17:26 -05:00
2019-07-23 18:32:50 -05:00
2018-03-19 14:20:43 -05:00
2019-06-13 16:49:45 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00