]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: fix ECN check on the passive accept
authorPotnuri Bharat Teja <bharat@chelsio.com>
Thu, 3 Oct 2019 10:43:53 +0000 (16:13 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Oct 2019 18:35:19 +0000 (14:35 -0400)
commit612e0486ad0845c41ac10492e78144f99e326375
treec53a389a1ada63d20dde168dd2648781e03ab4a4
parent22bb13653410424d9fce8d447506a41f8292f22f
iw_cxgb4: fix ECN check on the passive accept

pass_accept_req() is using the same skb for handling accept request and
sending accept reply to HW. Here req and rpl structures are pointing to
same skb->data which is over written by INIT_TP_WR() and leads to
accessing corrupt req fields in accept_cr() while checking for ECN flags.
Reordered code in accept_cr() to fetch correct req fields.

Fixes: 92e7ae7172 ("iw_cxgb4: Choose appropriate hw mtu index and ISS for iWARP connections")
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Link: https://lore.kernel.org/r/20191003104353.11590-1-bharat@chelsio.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c