From: Jason Wang Date: Sun, 2 Dec 2012 17:19:45 +0000 (+0000) Subject: tuntap: attach queue 0 before registering netdevice X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0fb363f920e4d8c70d30b712f9dd433271218c;p=pandora-kernel.git tuntap: attach queue 0 before registering netdevice We attach queue 0 after registering netdevice currently. This leads to call netif_set_real_num_{tx|rx}_queues() after registering the netdevice. Since we allow tun/tap has a maximum of 1024 queues, this may lead a huge number of uevents to be injected to userspace since we create 2048 kobjects and then remove 2046. Solve this problem by attaching queue 0 and set the real number of queues before registering netdevice. Reported-by: Jiri Slaby Tested-by: Jiri Slaby Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed