lkml.org 
[lkml]   [2008]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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;
}


\
 
 \ /
  Last update: 2008-11-30 13:41    [W:0.029 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site