aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2017-12-31 15:33:14 +0200
committerJason Gunthorpe <[email protected]>2018-01-02 11:09:05 -0700
commit5a371cf87e145b86efd32007e46146e78c1eff6d (patch)
tree40d750e107a235f45b95d631368fcc543bea78ce /scripts/gcc-plugins
parent45e6ae7ef21b907dacb18da62d5787d74a31d860 (diff)
IB/mlx4: Fix mlx4_ib_alloc_mr error flow
ibmr.device is being set only after ib_alloc_mr() is successfully complete. Therefore, in case imlx4_mr_enable() returns with error, the error flow unwinder calls to mlx4_free_priv_pages(), which uses ibmr.device. Such usage causes to NULL dereference oops and to fix it, the IB device should be set in the mr struct earlier stage (e.g. prior to calling mlx4_free_priv_pages()). Fixes: 1b2cd0fc673c ("IB/mlx4: Support the new memory registration API") Signed-off-by: Nitzan Carmi <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions