Messages in this thread | | | Date | Thu, 8 May 1997 17:43:30 +0200 (MET DST) | From | Ingo Molnar <> | Subject | Re: No kernel oops? |
| |
On Thu, 8 May 1997, Rogier Wolff wrote:
> 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?
what was the value of 'reg' ? I guess if the memory location is bigger than 4096 then the bug wont get noticed by zero page.
-- mingo
| |