Re: [PATCH] IB/ucma: check workqueue allocation before usage

2015-10-01 Thread Sasha Levin
On 09/17/2015 06:59 PM, Jason Gunthorpe wrote: > On Thu, Sep 17, 2015 at 04:04:19PM -0400, Sasha Levin wrote: >> 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. > > Indeed. > &g

Re: [PATCH] IB/ucma: check workqueue allocation before usage

2015-09-17 Thread Sasha Levin
On 09/17/2015 04:10 PM, Hefty, Sean wrote: > What kernel is this patch against? Patch is against linux-next. Thanks, Sasha >> 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. >> >

[PATCH] IB/ucma: check workqueue allocation before usage

2015-09-17 Thread Sasha Levin
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 --- drivers/infiniband/core/ucma.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband

[PATCH] RDMA/ocrdma: Don't sleep in atomic notifier handler

2012-04-27 Thread Sasha Levin
instead. I couldn't fully test it since I don't have IB hardware, so if it doesn't fully work for some reason let me know and I'll switch it back to using a spinlock. Signed-off-by: Sasha Levin --- drivers/infiniband/hw/ocrdma/ocrdma.h |1 + drivers/infiniband/