From: Herbert Xu Date: Fri, 26 Dec 2008 22:57:42 +0000 (-0800) Subject: gro: Fix potential use after free X-Git-Tag: v2.6.29-rc1~581^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da2afd59653d2edf5c8e0f09b23f367ab5bc80f;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed