Fix a dereference of an undefined value.
authorSascha Wildner <saw@online.de>
Sat, 20 Dec 2008 21:52:06 +0000 (22:52 +0100)
committerSascha Wildner <saw@online.de>
Sat, 20 Dec 2008 21:53:09 +0000 (22:53 +0100)
commit46098a9d0923033bb7fa4caa14ce5e1576bb2bb7
tree4d265d4525ab524c755e6b1f2591fadf1fdfae33
parent9e758ef5f877fc62da29acea6a4e429052bd7734
Fix a dereference of an undefined value.

ntmp was being accessed (via ntfs_bntodoff()) before it was allocated.
The whole thing only worked because BBLOCK is 0 and the dereference was
optimized away (though not with -O0).

Found-by: LLVM/Clang Static Analyzer
sys/vfs/ntfs/ntfs_vfsops.c