]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] ntfs_init_locked_inode(): fix array indexing
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 31 May 2007 07:40:49 +0000 (00:40 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Jun 2007 18:36:47 +0000 (11:36 -0700)
commitc1d644abce8761a681ddf9a0ebe225f93f2bc5a5
tree84ea0f43200a703b6ccdf24c38b747f89b8b6866
parent72fec8085df88ab1df41372a34fdfefa72a8936f
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ntfs/inode.c