]> 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)
commit154cdbbabfa6c278e1a6e63194fe25e66d7a06e6
treec53a389a1ada63d20dde168dd2648781e03ab4a4
parentc75485cd2ae94cfc232ba7c5edec6182926d5452
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: f6847a04e9 ("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