Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
	if (!reply)
		err = -ENOMEM;

	else
		err = c2_errno(reply);
	if (err)
		goto bail2;