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
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.
>>
>
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
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/