aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/fs_enet/fs_enet-main.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2009-01-14 20:40:03 -0800
committerDavid S. Miller <[email protected]>2009-01-14 20:40:03 -0800
commitf557206800801410c30e53ce7a27219b2c4cf0ba (patch)
tree0c18a5766787a9dcc038eb60c8cbdf78c585ff6b /drivers/net/fs_enet/fs_enet-main.c
parentfc8c7dc1b29560c016a67a34ccff32a712b5aa86 (diff)
gro: Fix page ref count for skbs freed normally
When an skb with page frags is merged into an existing one, we cannibalise its reference count. This is OK when the skb is reused because we set nr_frags to zero in that case. However, for the case where the skb is freed through kfree_skb, we didn't clear nr_frags which causes the page to be freed prematurely. This is fixed by moving the skb resetting into skb_gro_receive. Reported-by: Jeff Kirsher <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/fs_enet/fs_enet-main.c')
0 files changed, 0 insertions, 0 deletions