Files
linux-st/include/linux
Serge Semin f1678a4c66 NTB: Fix UB/bug in ntb_mw_get_align()
Simple (1 << pidx) operation causes undefined behaviour when
pidx >= 32. It must be casted to u64 to match the actual return
value of ntb_link_is_up() method, so to have all the possible
peer indexes covered and to get rid of undefined behaviour.
Additionally there are special macros in "linux/bitops.h" to perform
the bit-set-shift operations, so it's recommended to have them used
for proper bit setting.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2018-01-28 22:17:24 -05:00
..
2017-11-30 16:55:35 +00:00
2017-12-20 11:10:17 -07:00
2017-12-21 02:15:41 +01:00
2017-12-29 21:13:04 +01:00
2017-12-01 13:09:40 -08:00
2017-11-29 18:40:42 -08:00
2018-01-28 22:17:24 -05:00
2017-12-14 16:00:49 -08:00