Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1214596
| From | "Steve Wise" <swise@opengridcomputing.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] infiniband:cxgb4:Fix incorrect return statement in the function c4iw_reject_cr |
| Date | 2015-08-27 16:20 +0200 |
| Message-ID | <q26c2-6RB-19@gated-at.bofh.it> (permalink) |
| References | <q26c2-6RB-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message----- > From: Nicholas Krause [mailto:xerofoify@gmail.com] > Sent: Wednesday, August 26, 2015 7:22 PM > To: swise@chelsio.com > Cc: dledford@redhat.com; sean.hefty@intel.com; hal.rosenstock@gmail.com; linux-rdma@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH] infiniband:cxgb4:Fix incorrect return statement in the function c4iw_reject_cr > > This fixes the incorrect return statement in the function > c4iw_reject_cr that returns the value zero directly to instead > return the variable err as this function can fail when called > and if so we will incorrectly return success rather then the > correct status of a failed call to the caller of this particular > function. > > Signed-off-by: Nicholas Krause <xerofoify@gmail.com> > --- NAK. The return code for these cpl handlers indicates if process_work() or other callers needs to free the skb. They are supposed to return 0. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
RE: [PATCH] infiniband:cxgb4:Fix incorrect return statement in the function c4iw_reject_cr "Steve Wise" <swise@opengridcomputing.com> - 2015-08-27 16:20 +0200
csiph-web