OSDN Git Service

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)
commitc8d3bcbfc5eab3f01cf373d039af725f3b488813
tree15d657b35b72e5d27efa25e618a1eb00c97b71d5
parent4b658d1bbc16605330694bb3ef2570c465ef383d
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: 75216638572f ("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