From: Oliver Hartkopp Date: Tue, 11 Aug 2009 02:41:24 +0000 (+0000) Subject: can: fix oops caused by wrong rtnl newlink usage X-Git-Tag: v2.6.31-rc7~27^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=993e6f2fd487e2acddd711f79cf48f3420731382;p=pandora-kernel.git 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 Reported-by: Dmitry Eremin-Solenikov CC: Patrick McHardy CC: Wolfgang Grandegger Signed-off-by: David S. Miller --- Reading git-diff-tree failed