linux-stable/drivers/ntb/hw
Dan Carpenter ff148d8ac5 ntb_hw_switchtec: potential shift wrapping bug in switchtec_ntb_init_sndev()
This code triggers a Smatch warning:

    drivers/ntb/hw/mscc/ntb_hw_switchtec.c:884 switchtec_ntb_init_sndev()
    warn: should '(1 << sndev->peer_partition)' be a 64 bit type?

The "part_map" and "tpart_vec" variables are u64 type so this seems like
a valid warning.

Fixes: 3df54c870f ("ntb_hw_switchtec: Allow using Switchtec NTB in multi-partition setups")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2019-06-13 08:59:14 -04:00
..
amd NTB: ntb_hw_amd: set peer limit register 2019-06-13 08:58:08 -04:00
idt drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
intel ntb: intel: Make intel_ntb3_peer_db_addr static 2019-06-13 08:53:19 -04:00
mscc ntb_hw_switchtec: potential shift wrapping bug in switchtec_ntb_init_sndev() 2019-06-13 08:59:14 -04:00
Kconfig NTB: switchtec_ntb: Introduce initial NTB driver 2017-11-18 20:37:12 -05:00
Makefile NTB: switchtec_ntb: Introduce initial NTB driver 2017-11-18 20:37:12 -05:00