diff options
| author | Tvrtko Ursulin <[email protected]> | 2010-07-15 13:25:06 +0100 |
|---|---|---|
| committer | James Morris <[email protected]> | 2010-08-02 15:34:59 +1000 |
| commit | b8bc83ab4dcbc9938b95a90bbb50d89d1904d5ab (patch) | |
| tree | 7ccdfa1ad932b8556052aa0de65d017816a4470e /lib/debugobjects.c | |
| parent | 57a62c2317d60b21b7761c319a733a894482a6af (diff) | |
securityfs: Drop dentry reference count when mknod fails
lookup_one_len increments dentry reference count which is not decremented
when the create operation fails. This can cause a kernel BUG at
fs/dcache.c:676 at unmount time. Also error code returned when new_inode()
fails was replaced with more appropriate -ENOMEM.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Acked-by: Serge E. Hallyn <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions