]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
RDMA/nldev: Enforce device index check for port callback
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 31 Oct 2017 18:09:54 +0000 (20:09 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Oct 2017 19:12:55 +0000 (12:12 -0700)
commit287683d027a3ff83feb6c7044430c79881664ecf
treea047276f244bba9f13d37362c493e8438de80e69
parent5f479447d983111c039f1d6d958553c1ad1b2ff1
RDMA/nldev: Enforce device index check for port callback

IB device index is nldev's handler and it should be checked always.

Fixes: c3f66f7b0052 ("RDMA/netlink: Implement nldev port doit callback")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Doug Ledford <dledford@redhat.com>
[ Applying directly, since Doug fried his SSD's and is rebuilding  - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/infiniband/core/nldev.c