]> 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)
commitd6be3df5bb27c05b01bc436a5c98e47dccf892bb
treea197ec69e32a451efe9af94fd08cca4096ad8f27
parent79e037a553a768eba9213d306838d4f234891329
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