linux-hardened/fs/hfsplus
Alexey Khoroshilov 5bd9d99d10 hfsplus: add error checking for hfs_find_init()
hfs_find_init() may fail with ENOMEM, but there are places, where
the returned value is not checked. The consequences can be very
unpleasant, e.g. kfree uninitialized pointer and
inappropriate mutex unlocking.

The patch adds checks for errors in hfs_find_init().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2011-07-07 17:45:46 +02:00
..
bfind.c hfsplus: over 80 character lines clean-up 2010-12-16 18:08:45 +01:00
bitmap.c hfsplus: over 80 character lines clean-up 2010-12-16 18:08:45 +01:00
bnode.c hfsplus: %L-to-%ll, macro correction, and remove unneeded braces 2010-12-16 18:08:46 +01:00
brec.c hfsplus: over 80 character lines clean-up 2010-12-16 18:08:45 +01:00
btree.c hfsplus: over 80 character lines clean-up 2010-12-16 18:08:45 +01:00
catalog.c hfsplus: add error checking for hfs_find_init() 2011-07-07 17:45:46 +02:00
dir.c hfsplus: add error checking for hfs_find_init() 2011-07-07 17:45:46 +02:00
extents.c hfsplus: add error checking for hfs_find_init() 2011-07-07 17:45:46 +02:00
hfsplus_fs.h Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus 2011-01-07 17:16:27 -08:00
hfsplus_raw.h hfsplus: over 80 character lines clean-up 2010-12-16 18:08:45 +01:00
inode.c hfsplus: add error checking for hfs_find_init() 2011-07-07 17:45:46 +02:00
ioctl.c userns: rename is_owner_or_cap to inode_owner_or_capable 2011-03-23 19:47:13 -07:00
Kconfig fs/Kconfig: move hfs, hfsplus out 2009-01-22 13:15:57 +03:00
Makefile
options.c hfsplus: over 80 character lines clean-up 2010-12-16 18:08:45 +01:00
part_tbl.c hfsplus: do not leak buffer on error 2011-02-03 16:34:05 -07:00
super.c hfsplus: add error checking for hfs_find_init() 2011-07-07 17:45:46 +02:00
tables.c
unicode.c hfsplus: assignments inside `if' condition clean-up 2011-06-30 13:40:58 +02:00
wrapper.c hfsplus: lift the 2TB size limit 2011-06-30 13:40:59 +02:00