diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2011-07-06 02:29:59 +0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-07 17:45:46 +0200 |
commit | 5bd9d99d107c56ff7b35a29e930d85f91a07b2fd (patch) | |
tree | b5db237ebff38c90b95f01d8cca28bc8c2536e7f /fs/bio.c | |
parent | c6d5f5fa658f2569a7baaff5acda261a1316cee9 (diff) |
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>
Diffstat (limited to 'fs/bio.c')
0 files changed, 0 insertions, 0 deletions