public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: re: RDMA/amso1100: Add driver for Ammasso 1100 RNIC
Date: Sat, 23 Feb 2013 08:37:55 +0300	[thread overview]
Message-ID: <20130223053754.GA20085@longonot.mountain> (raw)

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

                 reply	other threads:[~2013-02-23  5:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130223053754.GA20085@longonot.mountain \
    --to=dan.carpenter-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox