]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs: handle null pointers while printing node name and path
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 8 Feb 2017 11:28:55 +0000 (14:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 15:02:26 +0000 (16:02 +0100)
commitff7d87cc16bb5f06c8ddd0727d8112cb6e99c22b
tree9a717bcda9657c2e46943d852631e0a53fe3e45a
parentb22e1885577603c8e64c168b874dce9aaef677ba
kernfs: handle null pointers while printing node name and path

Null kernfs nodes could be found at cgroups during construction.
It seems safer to handle these null pointers right in kernfs in
the same way as printf prints "(null)" for null pointer string.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/dir.c
include/trace/events/cgroup.h