diff options
author | John Fleck <john.fleck@intel.com> | 2019-07-15 19:45:21 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-22 20:57:54 +0300 |
commit | cd48a82087231fdba0e77521102386c6ed0168d6 (patch) | |
tree | 74c331076ed746342cd4d60a47e73f12be2ede47 /include/rdma | |
parent | 60c3becfd1a138fdcfe48f2a5ef41ef0078d481e (diff) | |
download | linux-cd48a82087231fdba0e77521102386c6ed0168d6.tar.xz |
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