diff options
author | Wesley Sheng <[email protected]> | 2021-12-23 17:23:30 -0800 |
---|---|---|
committer | Jon Mason <[email protected]> | 2022-01-11 15:38:59 -0500 |
commit | 7ff351c86b6b258f387502ab2c9b9d04f82c1c3d (patch) | |
tree | 97c7b1303c10e88cfbe110b4c7df15fe1e8e1258 /net/lapb/lapb_in.c | |
parent | 32c3d375b0ed84b6acb51ae5ebef35ff0d649d85 (diff) |
ntb_hw_switchtec: Fix bug with more than 32 partitions
Switchtec could support as mush as 48 partitions, but ffs & fls are
for 32 bit argument, in case of partition index larger than 31, the
current code could not parse the peer partition index correctly.
Change to the 64 bit version __ffs64 & fls64 accordingly to fix this
bug.
Fixes: 3df54c870f52 ("ntb_hw_switchtec: Allow using Switchtec NTB in multi-partition setups")
Signed-off-by: Wesley Sheng <[email protected]>
Signed-off-by: Kelvin Cao <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions