Re: [PATCH] Do not access buffers after dropping reference count

Dave Chinner
2008-07-22T02:23:00Z

On Tue, Jul 22, 2008 at 12:16:45PM +1000, Lachlan McIlroy wrote:
> We should not access a buffer after dropping it's reference count otherwise
> we could race with another thread that releases the final reference count
> and frees the buffer causing us to access potentially unmapped memory.

Looks OK. The commit message should point out this is a problem
only for DEBUG kernels, though.

Cheers,

Dave.
--
Dave Chinner
david@fromorbit.com