address hfs on-disk corruption robustness review comments
Address Roman's review comments for the previously sent on-disk corruption hfs robustness patch. - use 0 as a failure value, rather than making a new macro HFS_BAD_KEYLEN, and use a switch statement instead of if's. - Add new fail: target to __hfs_brec_find to skip assignments using bad values when exiting with a failure. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Eric Sandeen <sandeen@redhat.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
7c28cbaed6
commit
55581d018e
@@ -28,8 +28,6 @@
|
||||
#define HFS_MAX_NAMELEN 128
|
||||
#define HFS_MAX_VALENCE 32767U
|
||||
|
||||
#define HFS_BAD_KEYLEN 0xFF
|
||||
|
||||
/* Meanings of the drAtrb field of the MDB,
|
||||
* Reference: _Inside Macintosh: Files_ p. 2-61
|
||||
*/
|
||||
|
Reference in New Issue
Block a user