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)
commit0174b381caf89443d92c6fe75f725f2bfeba96b6
tree24f34472d9bad49d01a6563c8cf7b3a0db6f68f4
parentb3b51f9f6f5d91cd16afaed0c22df2c56ed5f92e
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