mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 03:21:56 +07:00
45e6ae7ef2
ibmr.device is being set only after ib_alloc_mr() is
(successfully) complete. Therefore, in case mlx5_core_create_mkey()
return with error, the error flow calls mlx5_free_priv_descs()
which uses ibmr.device (which doesn't exist yet), causing
a NULL dereference oops.
To fix this, the IB device should be set in the mr struct earlier
stage (e.g. prior to calling mlx5_core_create_mkey()).
Fixes:
|
||
---|---|---|
.. | ||
ah.c | ||
cmd.c | ||
cmd.h | ||
cong.c | ||
cq.c | ||
doorbell.c | ||
gsi.c | ||
ib_virt.c | ||
Kconfig | ||
mad.c | ||
main.c | ||
Makefile | ||
mem.c | ||
mlx5_ib.h | ||
mr.c | ||
odp.c | ||
qp.c | ||
srq.c |