summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/cmd.c
diff options
context:
space:
mode:
authorKamenee Arumugam <kamenee.arumugam@intel.com>2019-05-24 11:45:04 -0400
committerJason Gunthorpe <jgg@mellanox.com>2019-05-29 12:56:05 -0300
commit97736f36dbebf2cda2799db3b54717ba5b388255 (patch)
tree6bbfbba8fedaeb670d20bd9ca4c4ee335c0301a9 /drivers/infiniband/hw/mlx5/cmd.c
parent35164f5259a47ea756fa1deb3e463ac2a4f10dc9 (diff)
downloadlinux-97736f36dbebf2cda2799db3b54717ba5b388255.tar.bz2
IB/hfi1: Validate page aligned for a given virtual address
User applications can register memory regions for TID buffers that are not aligned on page boundaries. Hfi1 is expected to pin those pages in memory and cache the pages with mmu_rb. The rb tree will fail to insert pages that are not aligned correctly. Validate whether a given virtual address is page aligned before pinning. Fixes: 7e7a436ecb6e ("staging/hfi1: Add TID entry program function body") Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/cmd.c')
0 files changed, 0 insertions, 0 deletions