can: fix oops caused by wrong rtnl dellink usage
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 21 Jun 2016 13:45:47 +0000 (15:45 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 23 Jun 2016 08:58:17 +0000 (10:58 +0200)
commit25e1ed6e64f52a692ba3191c4fde650aab3ecc07
tree69dce0a5f9d5710b3e1fe6201ea9572ab9e34f71
parentbce271f255dae8335dc4d2ee2c4531e09cc67f5a
can: fix oops caused by wrong rtnl dellink usage

For 'real' hardware CAN devices the netlink interface is used to set CAN
specific communication parameters. Real CAN hardware can not be created nor
removed with the ip tool ...

This patch adds a private dellink function for the CAN device driver interface
that does just nothing.

It's a follow up to commit 993e6f2fd ("can: fix oops caused by wrong rtnl
newlink usage") but for dellink.

Reported-by: ajneu <ajneu1@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c