summaryrefslogtreecommitdiff
path: root/include/rdma
diff options
context:
space:
mode:
authorJohn Fleck <john.fleck@intel.com>2019-07-15 12:45:21 -0400
committerJason Gunthorpe <jgg@mellanox.com>2019-07-22 14:57:54 -0300
commitcd48a82087231fdba0e77521102386c6ed0168d6 (patch)
tree74c331076ed746342cd4d60a47e73f12be2ede47 /include/rdma
parent60c3becfd1a138fdcfe48f2a5ef41ef0078d481e (diff)
downloadlinux-cd48a82087231fdba0e77521102386c6ed0168d6.tar.gz
IB/hfi1: Check for error on call to alloc_rsm_map_table
The call to alloc_rsm_map_table does not check if the kmalloc fails. Check for a NULL on alloc, and bail if it fails. Fixes: 372cc85a13c9 ("IB/hfi1: Extract RSM map table init from QOS") Link: https://lore.kernel.org/r/20190715164521.74174.27047.stgit@awfm-01.aw.intel.com Cc: <stable@vger.kernel.org> Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: John Fleck <john.fleck@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions