Skip to content

Commit 7756e2b

Browse files
davejiangjonmason
authored andcommitted
ntb: intel: fix return value for ndev_vec_mask()
ndev_vec_mask() should be returning u64 mask value instead of int. Otherwise the mask value returned can be incorrect for larger vectors. Fixes: e26a584 ("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>
1 parent a861594 commit 7756e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ntb/hw/intel/ntb_hw_gen1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static inline int ndev_db_clear_mask(struct intel_ntb_dev *ndev, u64 db_bits,
265265
return 0;
266266
}
267267

268-
static inline int ndev_vec_mask(struct intel_ntb_dev *ndev, int db_vector)
268+
static inline u64 ndev_vec_mask(struct intel_ntb_dev *ndev, int db_vector)
269269
{
270270
u64 shift, mask;
271271

0 commit comments

Comments
 (0)