summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2022-06-16 11:38:00 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-07-04 12:46:46 +0200
commit0ff32bfa0e794ccc3601de7158b522bf736fa63c (patch)
tree57c3783682be67f2773ac90b764f0142c3d6a0e9 /tools/perf/scripts/python/mem-phys-addr.py
parentd5a972f561a003e302e4267340c57e8fbd096fa4 (diff)
can: mcp251xfd: mcp251xfd_register_get_dev_id(): use correct length to read dev_id
The device ID register is 32 bits wide. The driver uses incorrectly the size of a pointer to a u32 to calculate the length of the SPI transfer. This results in a read of 2 registers on 64 bit platforms. This is no problem on the Linux side, as the RX buffer of the SPI transfer is large enough. In the mpc251xfd chip this results in the read of an undocumented register. So far no problems were observed. Fix the length of the SPI transfer to read the device ID register only. Link: https://lore.kernel.org/all/20220616094914.244440-1-mkl@pengutronix.de Fixes: 55e5b97f003e ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN") Reported-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
00'>2021-04-26netfilter: x_tables: remove ipt_unregister_tableFlorian Westphal 2020-06-25netfilter: ip6tables: Split ip6t_unregister_table() into pre_exit and exit he...David Wilder 2020-03-15netfilter: Replace zero-length array with flexible-array memberGustavo A. R. Silva 2019-09-13netfilter: remove CONFIG_NETFILTER checks from headers.Jeremy Sowden 2019-09-13netfilter: move inline nf_ip6_ext_hdr() function to a more appropriate header.Jeremy Sowden 2019-09-13netfilter: ip_tables: remove unused function declarations.Jeremy Sowden 2019-08-13netfilter: add missing IS_ENABLED(CONFIG_NETFILTER) checks to some header-files.Jeremy Sowden 2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman 2016-03-02netfilter: xtables: prepare for on-demand hook registerFlorian Westphal 2015-09-18inet netfilter: Remove hook from ip6t_do_table, arp_do_table, ipt_do_tableEric W. Biederman 2015-04-04netfilter: Pass nf_hook_state through ip6t_do_table().David S. Miller