Bug#594845: [PATCH] tun: Don't add sysfs attributes to devices without sysfs directories
From: Ben Hutchings <firstname.lastname@example.org>
Date: Fri, 10 Sep 2010 17:46:30 +0100
> Prior to Linux 2.6.35, net devices outside the initial net namespace
> did not have sysfs directories. Attempting to add attributes to
> them will trigger a BUG().
> Reported-and-tested-by: Russell Stuart <email@example.com>
> Signed-off-by: Ben Hutchings <firstname.lastname@example.org>
> This applies to 2.6.32 *only*. It has not been applied upstream since
> the limitation no longer exists.
> Dave, please ack or nak this for stable.
Acked-by: David S. Miller <email@example.com>