Skip to content

Commit

Permalink
RDMA/amso1100: Fix a NULL dereference in error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Roland Dreier committed Oct 16, 2006
1 parent d986a27 commit fb7711e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/hw/amso1100/c2_rnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fb7711e

Please sign in to comment.