[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A8166F4.6040204@hartkopp.net>
Date: Tue, 11 Aug 2009 14:41:24 +0200
From: Oliver Hartkopp <oliver@...tkopp.net>
To: David Miller <davem@...emloft.net>
CC: Patrick McHardy <kaber@...sh.net>,
Wolfgang Grandegger <wg@...ndegger.com>,
Linux Netdev List <netdev@...r.kernel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
Subject: [PATCH 2.6.31-rc5] can: fix oops caused by wrong rtnl newlink usage
For 'real' hardware CAN devices the netlink interface is used to set CAN
specific communication parameters. Real CAN hardware can not be created with
the ip tool ...
The invocation of 'ip link add type can' lead to an oops as the standard rtnl
newlink function was called:
http://bugzilla.kernel.org/show_bug.cgi?id=13954
This patch adds a private newlink function for the CAN device driver interface
that unconditionally returns -EOPNOTSUPP.
Signed-off-by: Oliver Hartkopp <oliver@...tkopp.net>
Reported-by: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
CC: Patrick McHardy <kaber@...sh.net>
CC: Wolfgang Grandegger <wg@...ndegger.com>
---
View attachment "can_newlink_oops_fix.patch" of type "text/x-patch" (617 bytes)
Powered by blists - more mailing lists