Files
linux/drivers
Jason Wang 850e088d5b virtio-net: correctly check num_buf during err path
If we successfully linearize the packet, num_buf will be set to zero
which may confuse error handling path which assumes num_buf is at
least 1 and this can lead the code tries to pop the descriptor of next
buffer. Fixing this by checking num_buf against 1 before decreasing.

Fixes: 4941d472bf ("virtio-net: do not reset during XDP set")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-23 13:36:19 -04:00
..
2018-04-19 15:11:50 -07:00
2018-03-27 09:51:22 +02:00
2018-05-22 13:48:34 -04:00
2018-04-18 23:37:25 -04:00
2018-03-29 13:38:10 +03:00