lkml.org 
[lkml]   [2004]   [Aug]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromMåns Rullgård <>
SubjectRe: Oops in register_chrdev, what did I do?
DateMon, 02 Aug 2004 11:36:15 +0200
Måns Rullgård <mru@kth.se> 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@kth.se

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

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2008