diff options
author | Oliver Hartkopp <oliver@hartkopp.net> | 2009-08-11 02:41:24 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 16:33:01 -0700 |
commit | 993e6f2fd487e2acddd711f79cf48f3420731382 (patch) | |
tree | f68fe3d6ab0640d9f258434ddaa4e8cf060251b0 /drivers/pcmcia/pxa2xx_cm_x255.c | |
parent | 839d1624b9dcf31fdc02e47359043bb7bd71d6ca (diff) |
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@hartkopp.net>
Reported-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
CC: Patrick McHardy <kaber@trash.net>
CC: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_cm_x255.c')
0 files changed, 0 insertions, 0 deletions