mbox series

[5.4/5.10,0/1] RDMA/i40iw: Fix potential NULL-ptr-dereference

Message ID 20230314134456.3557-1-n.zhandarovich@fintech.ru (mailing list archive)
Headers show
Series RDMA/i40iw: Fix potential NULL-ptr-dereference | expand

Message

Nikita Zhandarovich March 14, 2023, 1:44 p.m. UTC
This is a modified backport of upstream commit 5d9745cead1f. It corrects
NULL pointer dereference in in_dev_for_each_ifa_rtnl() caused by
potential device unavailability. This issue can be triggered on
5.4/5.10 stable branches.

Changes had to be made to the modified source file in question. Patch
 drivers/infiniband/hw/i40iw/i40iw_cm.c
instead of:
 drivers/infiniband/hw/irdma/cm.c
due to switch from i40iw to irdma driver in commit fa0cf568fd76.
i40iw driver was removed and irdma was introduced as an alias to i40iw.

Other than the filename change, the patch remains the same and can be
cleanly applied to stable branches listed above.