Commit fb7711e7 authored by Adrian Bunk's avatar Adrian Bunk Committed by Roland Dreier

RDMA/amso1100: Fix a NULL dereference in error path

This patch fixes a NULL dereference spotted by the Coverity checker.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Acked-by: default avatarSteve Wise <swise@opengridcomputing.com>
Acked-by: default avatarTom Tucker <tom@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent d986a274
...@@ -150,7 +150,7 @@ static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props) ...@@ -150,7 +150,7 @@ 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); (struct c2wr_rnic_query_rep *) (unsigned long) (vq_req->reply_msg);
if (!reply) if (!reply)
err = -ENOMEM; err = -ENOMEM;
else
err = c2_errno(reply); err = c2_errno(reply);
if (err) if (err)
goto bail2; goto bail2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment