aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorParav Pandit <[email protected]>2018-03-07 06:07:41 +0000
committerDoug Ledford <[email protected]>2018-03-07 20:15:40 +0000
commitbb7f8f199c354c4cf155b1d6d55f86eaaed7fa5a (patch)
treee422de5ac9356ee58a3a097c8645569c1e33c98a /scripts/gcc-plugins/cyc_complexity_plugin.c
parentRDMA/bnxt_re: Avoid Hard lockup during error CQE processing (diff)
downloadkernel-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