Re: Probable module bug in linux-2.6.5-1.358

From: Stephen Hemminger
Date: Thu Oct 07 2004 - 12:32:06 EST


Still haven't full source so this is still guess work.
But assuming it is a character device, did you forget to add an owner
field to the file ops structure?

static struct file_operations xxx_fops = {
.owner = THIS_MODULE,
.read = my_read,
...

The owner field is used by the character device layer to maintain module
ref counts in 2.6.



-
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/