writeback: Fix bdi use after free in wb_work_complete()
authorNick Piggin <npiggin@suse.de>
Tue, 15 Sep 2009 19:34:51 +0000 (21:34 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 16 Sep 2009 13:18:52 +0000 (15:18 +0200)
commit77b9d059cb3ddb8b1246d5878e81d52926550b23
tree6d6a894d91097aec9e589d22f48d7ec387e062d9
parent77fad5e625e56eb31a343ae1d489979fdc61a2aa
writeback: Fix bdi use after free in wb_work_complete()

By the time bdi_work_on_stack gets evaluated again in bdi_work_free, it
can already have been deallocated and used for something else in the
!on stack case, giving a false positive in this test and causing
corruption.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c