]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cma: Add a missing rcu_read_unlock()
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 20 Nov 2015 19:04:12 +0000 (11:04 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 8 Dec 2015 17:14:43 +0000 (12:14 -0500)
commit180363f282edb87da90ff78a3532f30dd538a2bc
tree5413e996b53a1a1aeaf98440b5ab672a4260084f
parentd24306a994b9f7e5a6d0e36d4b8b5144f2f0e9f2
IB/cma: Add a missing rcu_read_unlock()

Ensure that validate_ipv4_net_dev() calls rcu_read_unlock() if
fib_lookup() fails. Detected by sparse. Compile-tested only.

Fixes: "IB/cma: Validate routing of incoming requests" (commit 40650aa863c2).
Cc: Haggai Eran <haggaie@mellanox.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c