]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: set *bad_wr for post_send/post_recv errors
authorSteve Wise <swise@opengridcomputing.com>
Tue, 18 Oct 2016 21:04:39 +0000 (14:04 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:10:36 +0000 (20:10 -0500)
commitc5b5388bbcbea1d06be189a703b492764da6ba45
tree8f3a55cb119b4a0fc58485eb0368375a38aad56e
parent2b3a42a60fd46161b08d212d2c8fd6cebfe10dac
iw_cxgb4: set *bad_wr for post_send/post_recv errors

There are a few cases in c4iw_post_send() and c4iw_post_receive()
where *bad_wr is not set when an error is returned.  This can
cause a crash if the application tries to use bad_wr.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/qp.c