Bug#594845: [PATCH] tun: Don't add sysfs attributes to devices without sysfs directories
From: Ben Hutchings <email@example.com>
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 <firstname.lastname@example.org>
> Signed-off-by: Ben Hutchings <email@example.com>
> 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 <firstname.lastname@example.org>