Messages in this thread | | | Subject | No kernel oops? | Date | Thu, 8 May 1997 12:06:13 +0200 (MET DST) | From | (Rogier Wolff) |
| |
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.
| |