lkml.org 
[lkml]   [1997]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectNo kernel oops?
Date
From


Hi,

In a device driver that I am writing I have something like:

int zr_read (struct virgo_s *board, int reg)
{
return ((int *)board->base)[reg/4];
}


As an unfortunate accident, I was calling this with "board == NULL".
I had expected to see an kernel OOPS. when this happened. None
of this: it simply returned a memory location.

The virgo_s has "base" as its first element.

Anybody know why I didn't see an oops?

Kernel: 2.0.29
hw: P120, 64Mb RAM.

Roger.

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.076 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site