]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ucma: check workqueue allocation before usage
authorSasha Levin <sasha.levin@oracle.com>
Thu, 17 Sep 2015 20:04:19 +0000 (16:04 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Oct 2015 17:35:51 +0000 (13:35 -0400)
commit57d0dfef901b756a5c5b504e08de561845a611c9
tree24f34472d9bad49d01a6563c8cf7b3a0db6f68f4
parentfa1b74bde93ad17779cd7128b40a3370f3813145
IB/ucma: check workqueue allocation before usage

Allocating a workqueue might fail, which wasn't checked so far and would
lead to NULL ptr derefs when an attempt to use it was made.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/ucma.c