]> 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)
commit9d44721a659b48d29d0bd6760180883998ea4e28
tree24f34472d9bad49d01a6563c8cf7b3a0db6f68f4
parentc779cbba81993a7d0627ce798c855a4149477167
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