lkml.org 
[lkml]   [1997]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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



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