]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ntfs_init_locked_inode(): fix array indexing
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 31 May 2007 07:40:49 +0000 (00:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 31 May 2007 14:58:13 +0000 (07:58 -0700)
commit1fc799e1b4efdbc405d87d9f154d64d9bc299e5c
tree39b41ffd8647b3fa0a8262c4e5cb69602d309010
parentebdf7d399e67499dbd2a6b5154805fb049846cbb
ntfs_init_locked_inode(): fix array indexing

Local variable `i' is a byte-counter.  Don't use it as an index into an array
of le32's.

Reported-by: "young dave" <hidave.darkstar@gmail.com>
Cc: "Christoph Lameter" <clameter@sgi.com>
Acked-by: Anton Altaparmakov <aia21@cantab.net>
Cc: <stable@kernel.org>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ntfs/inode.c