Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information