btrfs-progs: Stop stomping on 'name' input parameter
authorAlex Chiang <achiang@hp.com>
Tue, 1 Apr 2008 14:38:51 +0000 (10:38 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 1 Apr 2008 14:38:51 +0000 (10:38 -0400)
commit5b4fe4f80fe620faff695ab1c3931b621ffb775e
tree7c610de31d339fa22cf8f6d295406bbf5f11c467
parentc2c5e3e7e533b1b03ba68723ef8ab7274d07148a
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>
hash.c