]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
kobject: don't use WARN for registration failures
authorDmitry Vyukov <dvyukov@google.com>
Wed, 11 Apr 2018 15:22:43 +0000 (17:22 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:24:14 +0000 (12:24 +0200)
commitbf4ac5a1333074d2e0c6eb25c9acf5df62237bdd
treeb648760a8674cfe53d9d413e09e79fe73aa91a7a
parent07550646c11f26ad9f1bbafe966eca9cb11e063a
kobject: don't use WARN for registration failures

BugLink: http://bugs.launchpad.net/bugs/1778265
commit 3e14c6abbfb5c94506edda9d8e2c145d79375798 upstream.

This WARNING proved to be noisy. The function still returns an error
and callers should handle it. That's how most of kernel code works.
Downgrade the WARNING to pr_err() and leave WARNINGs for kernel bugs.

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Reported-by: syzbot+209c0f67f99fec8eb14b@syzkaller.appspotmail.com
Reported-by: syzbot+7fb6d9525a4528104e05@syzkaller.appspotmail.com
Reported-by: syzbot+2e63711063e2d8f9ea27@syzkaller.appspotmail.com
Reported-by: syzbot+de73361ee4971b6e6f75@syzkaller.appspotmail.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
lib/kobject.c