xfs: check for valid indices in xfs_iext_get_ext and xfs_iext_idx_to_irec
authorChristoph Hellwig <hch@infradead.org>
Wed, 11 May 2011 15:04:11 +0000 (15:04 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 25 May 2011 15:48:37 +0000 (10:48 -0500)
commit87bef1812d337beadfb1099e7361fd41264eb88e
tree707b3c2a623b4fc80ce790bb61bd5262d9396821
parentab1908a5bb21a8eebf16e5d92d087fd9413cf67d
xfs: check for valid indices in xfs_iext_get_ext and xfs_iext_idx_to_irec

Based on an earlier patch from Lachlan McIlroy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lachlan McIlroy <lmcilroy@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_inode.c