aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index e4858b20bf11..315751965f35 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -68,7 +68,6 @@
68#include <net/netns/generic.h> 68#include <net/netns/generic.h>
69#include <net/rtnetlink.h> 69#include <net/rtnetlink.h>
70#include <net/sock.h> 70#include <net/sock.h>
71#include <net/cls_cgroup.h>
72 71
73#include <asm/uaccess.h> 72#include <asm/uaccess.h>
74 73
@@ -587,8 +586,6 @@ static struct sk_buff *tun_alloc_skb(struct tun_struct *tun,
587 struct sk_buff *skb; 586 struct sk_buff *skb;
588 int err; 587 int err;
589 588
590 sock_update_classid(sk, current);
591
592 /* Under a page? Don't bother with paged skb. */ 589 /* Under a page? Don't bother with paged skb. */
593 if (prepad + len < PAGE_SIZE || !linear) 590 if (prepad + len < PAGE_SIZE || !linear)
594 linear = len; 591 linear = len;