Re: Oops in register_chrdev, what did I do?

From: Måns Rullgård
Date: Mon Aug 02 2004 - 04:37:39 EST


Måns Rullgård <mru@xxxxxx> writes:

> While experimenting a bit with a small kernel module, I got this
> oops. Digging further, I found that /proc/devices had an entry saying
>
> 248 <NULL>
>
> which would indicate that I passed a NULL name to register_chrdev(),
> only I didn't. I used a string constant, so I can't see what changed
> it to NULL along the way.
>
> What am I missing here?

There was some confusion with compiler versions and flags, most
notably -mregparm. Fixed now. Sorry for the noise.

OTOH, wouldn't it be a good idea to refuse loading modules not
matching the running kernel?

--
Måns Rullgård
mru@xxxxxx

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