OSDN Git Service

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)
commitbd71ea60673180eccf17b1a1dda3504a04783789
treea197ec69e32a451efe9af94fd08cca4096ad8f27
parentc530189905efe91b6a464db4ec1b56b4c069609f
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