Re: NULL pointer dereference in sysfs_hash_and_remove()

From: Martin Josefsson
Date: Tue Oct 14 2003 - 13:54:56 EST


On Tue, 2003-10-14 at 01:32, Stephen Hemminger wrote:
> On Sat, 04 Oct 2003 00:41:32 +0200
> Martin Josefsson <gandalf@xxxxxxxxxxxxxx> wrote:
>
> > Hi
> >
> > I compiled 2.6.0-test6 and ran it on a laptop with cardbus.
> > I have an Xircom NIC and if I remove it during operation I get the bug
> > below.
> >
> > I have yenta_socket and xircom_cb loaded as modules.
>
>
> The driver was setting the statistics pointer after registration had occurred,
> so on unregister the network code was removing a non-existent sysfs directory.
>
> Try this please.

I've applied this patch and
"[PATCH] sysfs -- don't crash if removing non-existant attribute group"
and now it works great.

Thanks.

--
/Martin

Attachment: signature.asc
Description: This is a digitally signed message part