git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9630120
)
cxgb4: Fix error codes in c4iw_create_cq()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 13 Jul 2017 07:47:40 +0000
(10:47 +0300)
committer
Ben Hutchings
<ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:25 +0000
(13:34 +0000)
commit
6ebedacbb44602d4dec3348dee5ec31dd9b09521
upstream.
If one of these kmalloc() calls fails then we return ERR_PTR(0) which is
NULL. It results in a NULL dereference in the callers.
Fixes:
cfdda9d76436
("RDMA/cxgb4: Add driver for Chelsio T4 RNIC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/hw/cxgb4/cq.c
patch
|
blob
|
history
diff --cc
drivers/infiniband/hw/cxgb4/cq.c
Simple merge