Skip to content
Snippets Groups Projects
user avatar
Tvrtko Ursulin authored
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: default avatarTvrtko Ursulin <tvrtko.ursulin@sophos.com>
Acked-by: default avatarSerge E. Hallyn <serge@hallyn.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
b8bc83ab
History
Name Last commit Last update