public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* re: RDMA/amso1100: Add driver for Ammasso 1100 RNIC
@ 2013-02-23  5:37 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-02-23  5:37 UTC (permalink / raw)
  To: tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hello Tom Tucker,

The patch f94b533d091a: "RDMA/amso1100: Add driver for Ammasso 1100 
RNIC" from Sep 22, 2006, leads to the following warning:
"drivers/infiniband/hw/amso1100/c2_provider.c:272 c2_create_qp()
	 error: passing non neg 255 to ERR_PTR"

drivers/infiniband/hw/amso1100/c2_qp.c
   496          reply = (struct c2wr_qp_create_rep *) (unsigned long) (vq_req->reply_msg);
   497          if (!reply) {
   498                  err = -ENOMEM;
   499                  goto bail3;
   500          }
   501  
   502          if ((err = c2_wr_get_result(reply)) != 0) {
                           ^^^^^^^^^^^^^^^^^^^^^^^

This returns an unsigned char and not a negative error code.

   503                  goto bail4;
   504          }
   505  
   506          /* Fill in the kernel QP struct */

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-23  5:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23  5:37 RDMA/amso1100: Add driver for Ammasso 1100 RNIC Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox