From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: Russell King <rmk@arm.linux.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: bug in init_i82365 wrt sysfs
Date: Fri, 10 Oct 2003 01:03:14 -0300 [thread overview]
Message-ID: <20031010040314.GB9668@conectiva.com.br> (raw)
In-Reply-To: <20031010035940.GA9668@conectiva.com.br>
Em Fri, Oct 10, 2003 at 12:59:40AM -0300, Arnaldo C. Melo escreveu:
> Unable to handle kernel NULL pointer dereference at virtual address 00000010
> printing eip:
> c0192fc9
> *pde = 00000000
> Oops: 0000 [#1]
> CPU: 1
> EIP: 0060:[<c0192fc9>] Not tainted
> EFLAGS: 00010282
> EIP is at sysfs_add_file+0x9/0xa0
> eax: 00000000 ebx: 0000023c ecx: 00000001 edx: c2817ff0
> esi: 00000001 edi: 00000000 ebp: c0d89f70 esp: c0d89f64
> ds: 007b es: 007b ss: 0068
> Process modprobe (pid: 481, threadinfo=c0d88000 task=c0e759b0)
> Stack: 0000023c 00000001 c2817fe8 c0d89f80 c01dbf4c 00000000 c2817154 c0d89fa0
> c2805188 c2817fe8 c2817154 00000000 c029e8b8 c0d88000 c28172e0 c0d89fbc
> c0139cff 0804e738 0804e738 0804e738 0804e0e0 00000000 c0d88000 c0109897
> Call Trace:
> [<c01dbf4c>] class_device_create_file+0x1c/0x30
> [<c2805188>] init_i82365+0xe8/0x1e8 [i82365]
> [<c0139cff>] sys_init_module+0x15f/0x2f0
> [<c0109897>] syscall_call+0x7/0xb
>
> Code: 8b 77 10 6a 77 68 ab 88 27 c0 e8 e8 a2 f8 ff 8d 5e 70 58 89
Sorry, hit the send key too fast, here is what I researched:
We should use the same approach net/core/net-sysfs.c is using, i.e:
static struct class net_class = {
.name = "net",
.release = netdev_release,
#ifdef CONFIG_HOTPLUG
.hotplug = netdev_hotplug,
#endif
};
.
.
.
class_dev->class = &net_class;
class_dev->class_data = net;
Adjusted to pcmcia, of course, its late here, going to bed, tomorrow I'll
try to fix this one, if nobody beats me to it, I'll be happy to test patches
done while I'm asleep 8)
- Arnaldo
next prev parent reply other threads:[~2003-10-10 3:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-10 3:59 bug in init_i82365 wrt sysfs Arnaldo Carvalho de Melo
2003-10-10 4:03 ` Arnaldo Carvalho de Melo [this message]
2003-10-10 8:01 ` Russell King
2003-10-11 1:07 ` Arnaldo Carvalho de Melo
2003-10-14 23:13 ` Patrick Mochel
2003-10-15 7:54 ` Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031010040314.GB9668@conectiva.com.br \
--to=acme@conectiva.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox