Update and rename MantenerFIFO to MantenerFIFO.md
[vsorcdistro/.git] / mininet / util / kbuild / tun.patch
1 --- linux-2.6.33.1/drivers/net/tun.c    2010-03-24 22:47:32.000000000 -0700
2 +++ tun-new.c   2010-03-24 22:45:00.000000000 -0700
3 @@ -1006,7 +1006,9 @@
4                 if (err < 0)
5                         goto err_free_sk;
6  
7 -               if (device_create_file(&tun->dev->dev, &dev_attr_tun_flags) ||
8 +               /* BL hack: check for null parent kobj */
9 +               if (!tun->dev->dev.kobj.sd ||
10 +                   device_create_file(&tun->dev->dev, &dev_attr_tun_flags) ||
11                     device_create_file(&tun->dev->dev, &dev_attr_owner) ||
12                     device_create_file(&tun->dev->dev, &dev_attr_group))
13                         printk(KERN_ERR "Failed to create tun sysfs files\n");