diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-12-26 14:57:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-26 14:57:42 -0800 |
commit | 0da2afd59653d2edf5c8e0f09b23f367ab5bc80f (patch) | |
tree | d6dad9cf3ca8a352409b5ce5e8e2445434aa00f5 /drivers/net/ixgb | |
parent | 843813453f52e3378fc988c8364063fd4cb9d0e3 (diff) | |
download | kernel_samsung_smdk4412-0da2afd59653d2edf5c8e0f09b23f367ab5bc80f.zip kernel_samsung_smdk4412-0da2afd59653d2edf5c8e0f09b23f367ab5bc80f.tar.gz kernel_samsung_smdk4412-0da2afd59653d2edf5c8e0f09b23f367ab5bc80f.tar.bz2 |
gro: Fix potential use after free
The initial skb may have been freed after napi_gro_complete in
napi_gro_receive if it was merged into an existing packet. Thus
we cannot check same_flow (which indicates whether it was merged)
after calling napi_gro_complete.
This patch fixes this by saving the same_flow status before the
call to napi_gro_complete.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgb')
0 files changed, 0 insertions, 0 deletions