OSDN Git Service

virtio_net: check return value of skb_to_sgvec in one more location
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 10 Apr 2018 01:21:47 +0000 (18:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:50:23 +0000 (19:50 +0200)
commitdb203ab2402dbb9b58b038b8f9097a997f4d8a76
treeed6cad33e066727ba9f372eb0107fbad73b5da7e
parent2f483e77b0fd425d64e99095f497dbf3cf9f27fb
virtio_net: check return value of skb_to_sgvec in one more location

Kernels that do not have f6b10209b90d ("virtio-net: switch to use
build_skb() for small buffer") will have an extra call to skb_to_sgvec
that is not handled by e2fcad58fd23 ("virtio_net: check return value of
skb_to_sgvec always"). Since the former does not appear to be stable
material, just fix the call up directly.

Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/virtio_net.c