Skip to content
Commit b3b1a175 authored by liuyacan's avatar liuyacan Committed by Jakub Kicinski
Browse files

net/smc: set ini->smcrv2.ib_dev_v2 to NULL if SMC-Rv2 is unavailable



In the process of checking whether RDMAv2 is available, the current
implementation first sets ini->smcrv2.ib_dev_v2, and then allocates
smc buf desc and register rmb, but the latter may fail. In this case,
the pointer should be reset.

Fixes: e49300a6 ("net/smc: add listen processing for SMC-Rv2")
Signed-off-by: default avatarliuyacan <liuyacan@corp.netease.com>
Reviewed-by: default avatarKarsten Graul <kgraul@linux.ibm.com>
Link: https://lore.kernel.org/r/20220525085408.812273-1-liuyacan@corp.netease.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 215cd989
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment