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
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");