aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/alias_GUID.c
diff options
context:
space:
mode:
authorWeihang Li <[email protected]>2021-03-22 02:44:29 +0000
committerJason Gunthorpe <[email protected]>2021-03-23 00:46:37 +0000
commit783cf673b05ebf290317f583ee7eb6967ed9c964 (patch)
tree1bc353c050e00b4a9c2fc4773a14b86d09f37990 /drivers/infiniband/hw/mlx4/alias_GUID.c
parentIB/hns: Fix mispelling of subsystem (diff)
downloadkernel-783cf673b05ebf290317f583ee7eb6967ed9c964.tar.gz
kernel-783cf673b05ebf290317f583ee7eb6967ed9c964.zip
RDMA/hns: Fix memory corruption when allocating XRCDN
It's incorrect to cast the type of pointer to xrcdn from (u32 *) to (unsigned long *), then pass it into hns_roce_bitmap_alloc(), this will lead to a memory corruption. Fixes: 32548870d438 ("RDMA/hns: Add support for XRC on HIP09") Link: https://lore.kernel.org/r/[email protected] Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Weihang Li <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/alias_GUID.c')
0 files changed, 0 insertions, 0 deletions