Commit b0985e5c authored by Dmitry Vyukov's avatar Dmitry Vyukov Committed by Sasha Levin
Browse files

kobject: don't use WARN for registration failures



[ Upstream commit 3e14c6ab ]

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: default avatarDmitry Vyukov <dvyukov@google.com>
Reported-by: default avatar <syzbot+209c0f67f99fec8eb14b@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+7fb6d9525a4528104e05@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+2e63711063e2d8f9ea27@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+de73361ee4971b6e6f75@syzkaller.appspotmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
parent cdf78b78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment