RDMA/amso1100: Fix a NULL dereference in error path
This patch fixes a NULL dereference spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Acked-by: Steve Wise <swise@opengridcomputing.com> Acked-by: Tom Tucker <tom@opengridcomputing.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
d986a27413
commit
fb7711e71e
@ -150,8 +150,8 @@ static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props)
|
||||
(struct c2wr_rnic_query_rep *) (unsigned long) (vq_req->reply_msg);
|
||||
if (!reply)
|
||||
err = -ENOMEM;
|
||||
|
||||
err = c2_errno(reply);
|
||||
else
|
||||
err = c2_errno(reply);
|
||||
if (err)
|
||||
goto bail2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user