android_kernel_xiaomi_sm8350/drivers/net/can
Oliver Hartkopp 993e6f2fd4 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>
2009-08-13 16:33:01 -07:00
..
sja1000 can: sja1000: remove duplicated includes 2009-07-20 12:28:26 -07:00
dev.c can: fix oops caused by wrong rtnl newlink usage 2009-08-13 16:33:01 -07:00
Kconfig can: let SJA1000 driver depend on HAS_IOMEM 2009-06-23 04:16:44 -07:00
Makefile
vcan.c