No kernel oops?

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Thu, 8 May 1997 12:06:13 +0200 (MET DST)


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.