]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ucma: Check that device exists prior to accessing it
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 25 Mar 2018 08:39:05 +0000 (11:39 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 20:10:45 +0000 (14:10 -0600)
commitc51ee467d9e9e1ffcad37888aaa7a3e990c9f2c0
tree15d657b35b72e5d27efa25e618a1eb00c97b71d5
parentede9c8572ea602afd8e01c0577641801aba50678
RDMA/ucma: Check that device exists prior to accessing it

Ensure that device exists prior to accessing its properties.

Reported-by: <syzbot+71655d44855ac3e76366@syzkaller.appspotmail.com>
Fixes: b8f533e6bd74 ("RDMA/cma: Export rdma cm interface to userspace")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/ucma.c