]> git.karo-electronics.de Git - linux-beck.git/commit
[XFS] Fix oops in xfs_file_readdir()
authorDavid Chinner <dgc@sgi.com>
Wed, 6 Feb 2008 02:37:40 +0000 (13:37 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:24:13 +0000 (18:24 +1100)
commit450790a2c51e6d9d47ed30dbdcf486656b8e186f
tree4951fb3e7fae21a791fd7c4b161a1d3f0e6dc571
parentcbc89dcfd24fd161f7a8e262266177db160a58fb
[XFS] Fix oops in xfs_file_readdir()

When xfs_file_readdir() exactly fills a buffer, it can move it's index
past the end of the buffer and dereference it even though the result of
the dereference is never used. On some platforms this causes an oops.

SGI-PV: 976923
SGI-Modid: xfs-linux-melb:xfs-kern:30458a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_file.c