WSL2-Linux-Kernel/drivers/infiniband
Mustafa Ismail a61a558237 RDMA/irdma: Fix possible crash due to NULL netdev in notifier
commit 1c9043ae06 upstream.

For some net events in irdma_net_event notifier, the netdev can be NULL
which will cause a crash in rdma_vlan_dev_real_dev.  Fix this by moving
all processing to the NETEVENT_NEIGH_UPDATE case where the netdev is
guaranteed to not be NULL.

Fixes: 6702bc1474 ("RDMA/irdma: Fix netdev notifications for vlan's")
Link: https://lore.kernel.org/r/20220425181703.1634-4-shiraz.saleem@intel.com
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-12 12:30:15 +02:00
..
core IB/cm: Cancel mad on the DREQ event when the state is MRA_REP_RCVD 2022-04-13 20:59:17 +02:00
hw RDMA/irdma: Fix possible crash due to NULL netdev in notifier 2022-05-12 12:30:15 +02:00
sw RDMA/siw: Fix a condition race issue in MPA request processing 2022-05-12 12:30:14 +02:00
ulp RDMA/ib_srp: Fix a deadlock 2022-03-02 11:48:02 +01:00
Kconfig
Makefile