Re: [PATCH 1/2] hfs: add error checking for hfs_find_init()

2013-04-09 Thread Vyacheslav Dubeyko
On Tue, 2013-04-09 at 22:14 +0400, Alexey Khoroshilov wrote: > 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

[PATCH 1/2] hfs: add error checking for hfs_find_init()

2013-04-09 Thread Alexey Khoroshilov
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