Revision e1f5dbd7077eebec794452a516cb02f1669b036d authored by Lachlan McIlroy on 17 September 2008, 06:52:13 UTC, committed by Lachlan McIlroy on 17 September 2008, 06:52:13 UTC
We have a use-after-free issue where log completions access buffers via
the buffer log item and the buffer has already been freed. Fix this by
taking a reference on the buffer when attaching the buffer log item and
release the hold when the buffer log item is detached and we no longer
need the buffer. Also create a new function xfs_buf_item_free() to combine
some common code.

SGI-PV: 985757

SGI-Modid: xfs-linux-melb:xfs-kern:32025a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
1 parent f9114eb
History
File Mode Size
Kconfig -rw-r--r-- 28.4 KB
Makefile -rw-r--r-- 1.1 KB
calibrate.c -rw-r--r-- 5.0 KB
do_mounts.c -rw-r--r-- 8.8 KB
do_mounts.h -rw-r--r-- 1.3 KB
do_mounts_initrd.c -rw-r--r-- 3.2 KB
do_mounts_md.c -rw-r--r-- 7.3 KB
do_mounts_rd.c -rw-r--r-- 9.4 KB
initramfs.c -rw-r--r-- 11.6 KB
main.c -rw-r--r-- 21.0 KB
noinitramfs.c -rw-r--r-- 1.4 KB
version.c -rw-r--r-- 1.1 KB

back to top