btrfs-progs: Stop stomping on 'name' input parameter
authorAlex Chiang <achiang@hp.com>
Tue, 1 Apr 2008 15:21:40 +0000 (11:21 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:01 +0000 (11:04 -0400)
commit140dfd00ae544cdc0c9951b80ad6df61e62859e2
treee6c505976629760f5d477bd5c1369acc0f2543c6
parent2b114d1d33551ab1dcaa1d0b3a956df3776fb767
btrfs-progs: Stop stomping on 'name' input parameter

In btrfs_name_hash, Local variable 'buf' is declared as

__u32 buf[2];

but we then try to do this:

buf[0] = 0x67452301;
buf[1] = 0xefcdab89;
buf[2] = 0x98badcfe;
buf[3] = 0x10325476;

Oops. Fix buf to be the proper size.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/hash.c