diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
commit | 1236d6bb6e19fc72ffc6bbcdeb1bfefe450e54ee (patch) | |
tree | 47da3feee8e263e8c9352c85cf518e624be3c211 /net/8021q/vlan_core.c | |
parent | 750b1a6894ecc9b178c6e3d0a1170122971b2036 (diff) | |
parent | 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (diff) |
Merge 4.14-rc4 into staging-next
We want the staging/iio fixes in here as well to handle merge issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/8021q/vlan_core.c')
-rw-r--r-- | net/8021q/vlan_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c index e2ed69850489..0bc31de9071a 100644 --- a/net/8021q/vlan_core.c +++ b/net/8021q/vlan_core.c | |||
@@ -21,6 +21,12 @@ bool vlan_do_receive(struct sk_buff **skbp) | |||
21 | if (unlikely(!skb)) | 21 | if (unlikely(!skb)) |
22 | return false; | 22 | return false; |
23 | 23 | ||
24 | if (unlikely(!(vlan_dev->flags & IFF_UP))) { | ||
25 | kfree_skb(skb); | ||
26 | *skbp = NULL; | ||
27 | return false; | ||
28 | } | ||
29 | |||
24 | skb->dev = vlan_dev; | 30 | skb->dev = vlan_dev; |
25 | if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { | 31 | if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { |
26 | /* Our lower layer thinks this is not local, let's make sure. | 32 | /* Our lower layer thinks this is not local, let's make sure. |