Re: linux-next: WARNING: at fs/sysfs/dir.c:425sysfs_add_one+0x31/0x7a()

From: Al Viro
Date: Sun Nov 30 2008 - 07:39:42 EST


On Fri, May 09, 2008 at 10:56:20PM +0200, Thomas Meyer wrote:
> I get this warning while setting up a packet dvd mapping with:
>
> # pktsetup pktcdvd0 /dev/sr0

[snip]

That ought to fix it:

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index f20bf35..79981f2 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -417,6 +417,7 @@ static int pkt_sysfs_init(void)
printk(DRIVER_NAME": failed to create class pktcdvd\n");
return ret;
}
+ class_pktcdvd->dev_kobj = NULL;
return 0;
}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/