]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu
authorParav Pandit <parav@mellanox.com>
Fri, 21 Sep 2018 14:18:24 +0000 (09:18 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 4 Oct 2018 02:47:41 +0000 (20:47 -0600)
commit8c3a173acbafe78f81013eef9625c570099503b5
tree500313048e9b3ecbdbd25732faba0e675678e0fc
parentba1929a782ca9819b66a395893ee79220c920dcb
RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

rdma_find_ndev_for_src_ip_rcu() returns either valid netdev pointer or
ERR_PTR().  Instead of checking for NULL, check for error.

Fixes: dc6d1f1d1189 ("RDMA/core Introduce and use rdma_find_ndev_for_src_ip_rcu")
Reported-by: syzbot+20c32fa6ff84a2d28c36@syzkaller.appspotmail.com
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c