]> www.infradead.org Git - users/dwmw2/linux.git/commit
xen/netback: Reset nr_frags before freeing skb
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 5 Aug 2019 15:34:34 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:50:27 +0000 (10:50 +0200)
commite7a327b7436721ee929f3215c59ab3d1c772e66b
treee787033e14e64275745580c33c128f01519fdc61
parent382d8991832ff838b08257a6355edbfc28106043
xen/netback: Reset nr_frags before freeing skb

[ Upstream commit 3a0233ddec554b886298de2428edb5c50a20e694 ]

At this point nr_frags has been incremented but the frag does not yet
have a page assigned so freeing the skb results in a crash. Reset
nr_frags before freeing the skb to prevent this.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/netback.c