aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_bbr.c
diff options
context:
space:
mode:
authorBert Kenward <bkenward@solarflare.com>2017-12-07 17:18:58 +0000
committerDavid S. Miller <davem@davemloft.net>2017-12-08 13:25:39 -0500
commitd4a7a8893d4cdbc89d79ac4aa704bf8d4b67b368 (patch)
treeba5facbcc8cbb76b382a6b607f91ce050e42d552 /net/ipv4/tcp_bbr.c
parentgianfar: Disable EEE autoneg by default (diff)
downloadlinux-dev-d4a7a8893d4cdbc89d79ac4aa704bf8d4b67b368.tar.xz
linux-dev-d4a7a8893d4cdbc89d79ac4aa704bf8d4b67b368.zip
sfc: pass valid pointers from efx_enqueue_unwind
The bytes_compl and pkts_compl pointers passed to efx_dequeue_buffers cannot be NULL. Add a paranoid warning to check this condition and fix the one case where they were NULL. efx_enqueue_unwind() is called very rarely, during error handling. Without this fix it would fail with a NULL pointer dereference in efx_dequeue_buffer, with efx_enqueue_skb in the call stack. Fixes: e9117e5099ea ("sfc: Firmware-Assisted TSO version 2") Reported-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Bert Kenward <bkenward@solarflare.com> Tested-by: Jarod Wilson <jarod@redhat.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_bbr.c')
0 files changed, 0 insertions, 0 deletions