]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 12 Aug 2016 07:07:19 +0000 (09:07 +0200)
commit59af5ce76da72b3d00e9ab4170a374093efd42de
treeae3b1037714e3bac3679deec07916fe8d13de167
parentc7dfdbb4de9f2b82eb8f9b33fac16251fbae190c
can: fix oops caused by wrong rtnl dellink usage

BugLink: http://bugs.launchpad.net/bugs/1611833
commit 25e1ed6e64f52a692ba3191c4fde650aab3ecc07 upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/can/dev.c