aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJohn Fleck <[email protected]>2019-07-15 12:45:21 -0400
committerJason Gunthorpe <[email protected]>2019-07-22 14:57:54 -0300
commitcd48a82087231fdba0e77521102386c6ed0168d6 (patch)
tree74c331076ed746342cd4d60a47e73f12be2ede47 /net/switchdev/switchdev.c
parent60c3becfd1a138fdcfe48f2a5ef41ef0078d481e (diff)
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/[email protected] Cc: <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: John Fleck <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions