Files
linux/fs/minix
Doug Graham 9f6c133393 V3 minixfs: add missing directory type checking
There are a few places in the Minix FS code where the "inode" field of a
minix_dir_entry is used without checking first to see if the dirent is
really a minix3_dir_entry.  The inode number in a V1/V2 dirent is 16 bits,
whereas that in a V3 dirent is 32 bits.

Accessing it as a 16 bit field when it really should be accessed as a 32
bit field probably kinda sorta works on a little-endian machine, but leads
to some rather odd behaviour on big-endian machines.

[[email protected]: coding-style fixes]
Signed-off-by: Doug Graham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2009-09-23 07:39:57 -07:00
..
2009-06-17 00:36:37 -04:00
2009-06-11 21:36:12 -04:00
2009-06-17 00:36:37 -04:00
2007-02-12 09:48:31 -08:00
2009-01-22 13:15:58 +03:00
…
2008-07-25 10:53:30 -07:00