[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081130123924.GW28946@ZenIV.linux.org.uk>
Date: Sun, 30 Nov 2008 12:39:24 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Thomas Meyer <thomas@...3r.de>
Cc: linux-kernel@...r.kernel.org
Subject: Re: linux-next: WARNING: at fs/sysfs/dir.c:425
sysfs_add_one+0x31/0x7a()
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists