From eff3b634d9a0cccb6ca8b431819fa415f10804dc Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Wed, 13 Dec 2006 00:33:50 -0800 Subject: [PATCH] uml: fix net_kern workqueue abuse Fix up the work on stack and exit scope trouble by placing the work_struct in the uml_net_private data. Signed-off-by: Peter Zijlstra Acked-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/um/include/net_kern.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/um/include/net_kern.h') diff --git a/arch/um/include/net_kern.h b/arch/um/include/net_kern.h index 280459fb0b26..218f8b47fdcd 100644 --- a/arch/um/include/net_kern.h +++ b/arch/um/include/net_kern.h @@ -11,6 +11,7 @@ #include #include #include +#include struct uml_net { struct list_head list; @@ -26,6 +27,7 @@ struct uml_net_private { struct net_device *dev; struct timer_list tl; struct net_device_stats stats; + struct work_struct work; int fd; unsigned char mac[ETH_ALEN]; unsigned short (*protocol)(struct sk_buff *); -- cgit v1.2.3-59-g8ed1b