ntb: intel: fix return value for ndev_vec_mask()
authorDave Jiang <dave.jiang@intel.com>
Wed, 29 Aug 2018 00:13:59 +0000 (17:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:28:52 +0000 (18:28 +0100)
commit23c7064d5c2d6b7a7c268b6f4d545ac4e8b4e08e
treebff493da57c39fcddadc686c14bfab6340d7ac5d
parentbb51638760b1ae06c398385f6fa0015e33d5848b
ntb: intel: fix return value for ndev_vec_mask()

[ Upstream commit 7756e2b5d68c36e170a111dceea22f7365f83256 ]

ndev_vec_mask() should be returning u64 mask value instead of int.
Otherwise the mask value returned can be incorrect for larger
vectors.

Fixes: e26a5843f7f5 ("NTB: Split ntb_hw_intel and ntb_transport drivers")

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Tested-by: Lucas Van <lucas.van@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ntb/hw/intel/ntb_hw_intel.c