summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2022-01-31 11:45:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-08 18:34:07 +0100
commit63c69c93d978734edbaa2ba277122aedc7d22a25 (patch)
treeae8326f873ac967b996016b109485d9ac8498096 /tools/perf
parent035ea99c537de921c2f05134bffbbc0d517df0de (diff)
downloadlinux-stable-63c69c93d978734edbaa2ba277122aedc7d22a25.tar.gz
linux-stable-63c69c93d978734edbaa2ba277122aedc7d22a25.tar.bz2
linux-stable-63c69c93d978734edbaa2ba277122aedc7d22a25.zip
RDMA/mlx4: Don't continue event handler after memory allocation failure
commit f3136c4ce7acf64bee43135971ca52a880572e32 upstream. The failure to allocate memory during MLX4_DEV_EVENT_PORT_MGMT_CHANGE event handler will cause skip the assignment logic, but ib_dispatch_event() will be called anyway. Fix it by calling to return instead of break after memory allocation failure. Fixes: 00f5ce99dc6e ("mlx4: Use port management change event instead of smp_snoop") Link: https://lore.kernel.org/r/12a0e83f18cfad4b5f62654f141e240d04915e10.1643622264.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions