Re: [PATCH 2/3] can: fix oops caused by wrong rtnl dellink usage
From: Sergei Shtylyov <hidden>
Date: 2016-06-23 13:09:03
Also in:
linux-can
On 6/23/2016 4:01 PM, Oliver Hartkopp wrote:
quoted
quoted
From: Oliver Hartkopp <socketcan@hartkopp.net> 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 <redacted> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Cc: <redacted> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> --- drivers/net/can/dev.c | 6 ++++++ 1 file changed, 6 insertions(+)diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 348dd5001fa4..ad535a854e5c 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c@@ -1011,6 +1011,11 @@ static int can_newlink(struct net *src_net,struct net_device *dev, return -EOPNOTSUPP; } +static void can_dellink(struct net_device *dev, struct list_head *head) +{ + return;Why?http://marc.info/?l=linux-can&m=146651600421205&w=2 The same reason as for commit 993e6f2fd.
I was asking just about the useless *return* statement...
Regards, Oliver
MBR, Sergei