Loading drivers/net/tun.c +1 −2 Original line number Diff line number Diff line Loading @@ -1360,8 +1360,7 @@ static ssize_t tun_put_user(struct tun_struct *tun, } if (vnet_hdr_sz) { struct virtio_net_hdr gso = { 0 }; /* no info leak */ int ret; struct virtio_net_hdr gso; if (iov_iter_count(iter) < vnet_hdr_sz) return -EINVAL; Loading include/linux/virtio_net.h +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ static inline int virtio_net_hdr_from_skb(const struct sk_buff *skb, struct virtio_net_hdr *hdr, bool little_endian) { memset(hdr, 0, sizeof(*hdr)); memset(hdr, 0, sizeof(*hdr)); /* no info leak */ if (skb_is_gso(skb)) { struct skb_shared_info *sinfo = skb_shinfo(skb); Loading net/packet/af_packet.c +0 −2 Original line number Diff line number Diff line Loading @@ -1970,8 +1970,6 @@ static unsigned int run_filter(struct sk_buff *skb, static int __packet_rcv_vnet(const struct sk_buff *skb, struct virtio_net_hdr *vnet_hdr) { *vnet_hdr = (const struct virtio_net_hdr) { 0 }; if (virtio_net_hdr_from_skb(skb, vnet_hdr, vio_le())) BUG(); Loading Loading
drivers/net/tun.c +1 −2 Original line number Diff line number Diff line Loading @@ -1360,8 +1360,7 @@ static ssize_t tun_put_user(struct tun_struct *tun, } if (vnet_hdr_sz) { struct virtio_net_hdr gso = { 0 }; /* no info leak */ int ret; struct virtio_net_hdr gso; if (iov_iter_count(iter) < vnet_hdr_sz) return -EINVAL; Loading
include/linux/virtio_net.h +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ static inline int virtio_net_hdr_from_skb(const struct sk_buff *skb, struct virtio_net_hdr *hdr, bool little_endian) { memset(hdr, 0, sizeof(*hdr)); memset(hdr, 0, sizeof(*hdr)); /* no info leak */ if (skb_is_gso(skb)) { struct skb_shared_info *sinfo = skb_shinfo(skb); Loading
net/packet/af_packet.c +0 −2 Original line number Diff line number Diff line Loading @@ -1970,8 +1970,6 @@ static unsigned int run_filter(struct sk_buff *skb, static int __packet_rcv_vnet(const struct sk_buff *skb, struct virtio_net_hdr *vnet_hdr) { *vnet_hdr = (const struct virtio_net_hdr) { 0 }; if (virtio_net_hdr_from_skb(skb, vnet_hdr, vio_le())) BUG(); Loading