]> git.baikalelectronics.ru Git - kernel.git/commit
net: devlink: Remove overzealous WARN_ON with snapshots
authorAndrew Lunn <andrew@lunn.ch>
Sun, 16 Aug 2020 19:26:38 +0000 (21:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2020 04:07:06 +0000 (21:07 -0700)
commit4aa1f5aa6e5a1beb84d2f7127c775c48b4327644
treea197ec69e32a451efe9af94fd08cca4096ad8f27
parent5848f6a52f30283310ad143fbd45f0486fb0204e
net: devlink: Remove overzealous WARN_ON with snapshots

It is possible to trigger this WARN_ON from user space by triggering a
devlink snapshot with an ID which already exists. We don't need both
-EEXISTS being reported and spamming the kernel log.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c