diff options
author | Ross Lagerwall <ross.lagerwall@citrix.com> | 2019-08-05 16:34:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-25 10:51:52 +0200 |
commit | 47fd4df0c2731cec115d1bee0eb28030355e84ea (patch) | |
tree | a617a4afe9f6654a51fd923e3b3de9010dc284a3 /drivers/net/ethernet/mellanox/mlx5/core | |
parent | f85c2f3ab4a074a23946a480b7c0755637a04f93 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core')
0 files changed, 0 insertions, 0 deletions