From: Christoph Hellwig Date: Tue, 13 Sep 2011 22:26:00 +0000 (+0000) Subject: xfs: fix a use after free in xfs_end_io_direct_write X-Git-Tag: v3.1-rc7~63^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d2422aebc037095f77551119f795449d29befed;p=pandora-kernel.git xfs: fix a use after free in xfs_end_io_direct_write There is a window in which the ioend that we call inode_dio_wake on in xfs_end_io_direct_write is already free. Fix this by storing the inode pointer in a local variable. This is a fix for the regression introduced in 3.1-rc by "fs: move inode_dio_done to the end_io handler". Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder --- Reading git-diff-tree failed