fs/notify: don't show f_handle if exportfs_encode_inode_fh failed
authorAndrey Vagin <avagin@openvz.org>
Tue, 9 Sep 2014 21:51:06 +0000 (14:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:21 +0000 (14:52 -0700)
commitb16d8955e2561fc923bb75478e63d6822ba7039e
tree55112b8bb43724c77c3e1bacc32d469f48164ef9
parent0a76dbd0209834f50f3a02c3a4b958cf33b96269
fs/notify: don't show f_handle if exportfs_encode_inode_fh failed

commit 7e8824816bda16bb11ff5ff1e1212d642e57b0b3 upstream.

Currently we handle only ENOSPC.  In case of other errors the file_handle
variable isn't filled properly and we will show a part of stack.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/notify/fdinfo.c