| To: | "David S. Miller" <davem@xxxxxxxxxx>, Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] wandev_show single_open confusion |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Thu, 19 Feb 2004 11:27:05 -0800 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Fix single_open interface confusion in wanrouter. The argument passed
to single_open gets passed through via seq->private; not the void * argument
as assumed by this code.
diff -Nru a/net/wanrouter/wanproc.c b/net/wanrouter/wanproc.c
--- a/net/wanrouter/wanproc.c Thu Feb 19 11:24:49 2004
+++ b/net/wanrouter/wanproc.c Thu Feb 19 11:24:49 2004
@@ -207,7 +207,7 @@
static int wandev_show(struct seq_file *m, void *v)
{
- struct wan_device *wandev = v;
+ struct wan_device *wandev = m->private;
if (wandev->magic != ROUTER_MAGIC)
return 0;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [APPLETALK]: Use '%Z' for size_t., David S. Miller |
|---|---|
| Next by Date: | [PATCH] 2.4.25 pcnet32.c oops in rmmod, Don Fry |
| Previous by Thread: | NF/tc/routing thoughts, alex |
| Next by Thread: | Re: [PATCH] wandev_show single_open confusion, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |