]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: replace BUG_ON with WARN in _rtl_eri_write
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 8 Jan 2021 11:57:57 +0000 (12:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 Jan 2021 02:07:52 +0000 (18:07 -0800)
commit3591875c9d439a6a681ff88a7027beeac0db48c8
treeef1f9d09633e35ad07d6b9cf4df11e6d40a9e72b
parent3828cdb43ee47f03dcc91dbb9a59527a1782a5a4
r8169: replace BUG_ON with WARN in _rtl_eri_write

Use WARN here to avoid stopping the system. In addition print the addr
and mask values that triggered the warning.

v2:
- return on WARN to avoid an invalid register write

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c