Re: buffer cache question

2000-06-27 Thread Assar Westerlund
Marius Bendiksen <[EMAIL PROTECTED]> writes: > In the following code, from /sys/kern/vfs_bio.c : bread(), it appears to > me that it is possible for a null pointer to be deferenced? > > struct buf *bp; > > bp = getblk(vp, blkno, size, 0, 0); > *bpp = bp; > > /* i

buffer cache question

2000-06-27 Thread Marius Bendiksen
In the following code, from /sys/kern/vfs_bio.c : bread(), it appears to me that it is possible for a null pointer to be deferenced? struct buf *bp; bp = getblk(vp, blkno, size, 0, 0); *bpp = bp; /* if not found in cache, do some I/O */ if ((bp->b_flags &