diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-10-06 12:47:00 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-10-06 16:56:36 -0300 |
commit | 73c5265913b4b11a56d119396f745a57c7c272b7 (patch) | |
tree | a606cadbeaea8783cb03db1428e7fcecf006afcd /MAINTAINERS | |
parent | 6ef999f500213284bb038f1ff0c402791c60e380 (diff) | |
download | linux-73c5265913b4b11a56d119396f745a57c7c272b7.tar.gz linux-73c5265913b4b11a56d119396f745a57c7c272b7.tar.bz2 linux-73c5265913b4b11a56d119396f745a57c7c272b7.zip |
RDMA/bnxt_re: Fix sizeof mismatch for allocation of pbl_tbl.
An incorrect sizeof is being used, u64 * is not correct, it should be just
u64 for a table of umem_pgs number of u64 items in the pbl_tbl. Use the
idiom sizeof(*pbl_tbl) to get the object type without the need to
explicitly use u64.
Link: https://lore.kernel.org/r/20201006114700.537916-1-colin.king@canonical.com
Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions