Star64_linux/drivers/net/ethernet/mscc
Vladimir Oltean 4a601f1096 net: mscc: ocelot: adjust maxlen on NPI port, not CPU
Being a non-physical port, the CPU port does not have an ocelot_port
structure, so the ocelot_port_writel call inside the
ocelot_port_set_maxlen() function would access data behind a NULL
pointer.

This is a patch for net-next only, the net tree boots fine, the bug was
introduced during the net -> net-next merge.

Fixes: 1d34357931 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
Fixes: a8015ded89 ("net: mscc: ocelot: properly account for VLAN header length when setting MRU")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-15 00:16:40 -07:00
..
Kconfig
Makefile net: mscc: ocelot: Hardware ofload for tc flower filter 2019-06-02 13:49:49 -07:00
ocelot.c net: mscc: ocelot: adjust maxlen on NPI port, not CPU 2020-03-15 00:16:40 -07:00
ocelot.h net: dsa: felix: Allow unknown unicast traffic towards the CPU port module 2020-03-04 14:19:01 -08:00
ocelot_ace.c net: mscc: ocelot: parameterize the vcap_is2 properties 2020-03-03 18:57:49 -08:00
ocelot_ace.h net: mscc: ocelot: simplify tc-flower offload structures 2020-03-03 18:57:29 -08:00
ocelot_board.c net: mscc: ocelot: eliminate confusion between CPU and NPI port 2020-03-04 14:19:00 -08:00
ocelot_flower.c flow_offload: check for basic action hw stats type 2020-03-08 21:07:48 -07:00
ocelot_io.c net: mscc: ocelot: move resource ioremap and regmap init to common code 2019-11-15 12:32:16 -08:00
ocelot_police.c net: mscc: ocelot: refactor struct ocelot_port out of function prototypes 2019-11-11 12:59:10 -08:00
ocelot_police.h net: mscc: ocelot: refactor struct ocelot_port out of function prototypes 2019-11-11 12:59:10 -08:00
ocelot_ptp.h net: mscc: describe the PTP register range 2019-08-15 16:31:11 -07:00
ocelot_qs.h
ocelot_regs.c net: mscc: ocelot: filter out ocelot SoC specific PCS config from common path 2019-11-15 12:32:16 -08:00
ocelot_rew.h
ocelot_s2.h net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00
ocelot_tc.c net: mscc: ocelot: simplify tc-flower offload structures 2020-03-03 18:57:29 -08:00
ocelot_tc.h net: mscc: ocelot: Implement port policers via tc command 2019-05-29 21:37:49 -07:00