summaryrefslogtreecommitdiff
path: root/samples/bpf/xdp1_user.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-22 17:57:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-22 18:11:12 +0300
commit5d54f948aaac4a6ab6b908af379103559a5a002c (patch)
treecc9af51302a096c83b93ca8781a8f3785e906b78 /samples/bpf/xdp1_user.c
parenta9afc573dbe64e27c0082f69f242d2bbe13d57f3 (diff)
downloadlinux-5d54f948aaac4a6ab6b908af379103559a5a002c.tar.xz
sysfs: turn WARN() into pr_warn()
It's not good to crash the machine if panic_on_warn() is set just because someone made a stupid mistake of trying to create a sysfs file with the same name of an existing one. This makes the automated testing tools a lot harder to find the real bugs in the kernel. So just print a warning out and dump the stack to get the attention of the developer that they did something foolish. Then keep on trucking, as this should not be a fatal error at all. Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/bpf/xdp1_user.c')
0 files changed, 0 insertions, 0 deletions