]> git.baikalelectronics.ru Git - kernel.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)
commit1b0a4aed39bd8e0d5944c290fc80e1b0fa34e0f7
treea047276f244bba9f13d37362c493e8438de80e69
parent17690df7da1a267216a79bddbab9f510c6dfac91
RDMA/nldev: Enforce device index check for port callback

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

Fixes: 4dc8796efe29 ("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