diff options
| author | Parav Pandit <[email protected]> | 2018-03-07 06:07:41 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2018-03-07 20:15:40 +0000 |
| commit | bb7f8f199c354c4cf155b1d6d55f86eaaed7fa5a (patch) | |
| tree | e422de5ac9356ee58a3a097c8645569c1e33c98a /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | RDMA/bnxt_re: Avoid Hard lockup during error CQE processing (diff) | |
| download | kernel-bb7f8f199c354c4cf155b1d6d55f86eaaed7fa5a.tar.gz kernel-bb7f8f199c354c4cf155b1d6d55f86eaaed7fa5a.zip | |
IB/core: Fix possible crash to access NULL netdev
resolved_dev returned might be NULL as ifindex is transient number.
Ignoring NULL check of resolved_dev might crash the kernel.
Therefore perform NULL check before accessing resolved_dev.
Additionally rdma_resolve_ip_route() invokes addr_resolve() which
performs check and address translation for loopback ifindex.
Therefore, checking it again in rdma_resolve_ip_route() is not helpful.
Therefore, the code is simplified to avoid IFF_LOOPBACK check.
Fixes: 200298326b27 ("IB/core: Validate route when we init ah")
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Parav Pandit <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
