TencentOS-kernel/drivers/net/can
Dan Carpenter 032f9cd912 can: dev: prevent potential information leak in can_fill_info()
[ Upstream commit b552766c872f5b0d90323b24e4c9e8fa67486dd5 ]

The "bec" struct isn't necessarily always initialized. For example, the
mcp251xfd_get_berr_counter() function doesn't initialize anything if the
interface is down.

Fixes: 52c793f24054 ("can: netlink support for bus-error reporting and counters")
Link: https://lore.kernel.org/r/YAkaRdRJncsJO8Ve@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-12 12:51:47 +08:00
..
c_can Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cc770 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ifi_canfd Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
m_can can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop() 2021-04-12 12:51:18 +08:00
mscan Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
peak_canfd can: peak_canfd: pucan_handle_can_rx(): fix echo management when loopback is on 2021-03-16 16:40:39 +08:00
rcar Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sja1000 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
softing can: softing: softing_netdev_open(): fix error handling 2021-03-16 16:42:25 +08:00
spi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
usb can: peak_usb: fix use after free bugs 2021-04-12 12:51:36 +08:00
Kconfig can: kvaser_pciefd: select CONFIG_CRC32 2021-04-12 12:51:18 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
at91_can.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dev.c can: dev: prevent potential information leak in can_fill_info() 2021-04-12 12:51:47 +08:00
flexcan.c can: flexcan: flexcan_chip_start(): fix erroneous flexcan_transceiver_enable() during bus-off recovery 2021-03-16 16:41:22 +08:00
grcan.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
janz-ican3.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
kvaser_pciefd.c can: kvaser_pciefd: Fix KCAN bittiming limits 2021-03-16 16:41:21 +08:00
led.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pch_can.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rx-offload.c can: rx-offload: don't call kfree_skb() from IRQ context 2021-03-16 16:40:37 +08:00
slcan.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sun4i_can.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ti_hecc.c can: ti_hecc: Fix memleak in ti_hecc_probe 2021-03-16 16:41:18 +08:00
vcan.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
vxcan.c can: vxcan: vxcan_xmit: fix use after free bug 2021-04-12 12:51:36 +08:00
xilinx_can.c can: xilinx_can: handle failure cases of pm_runtime_get_sync 2021-03-16 16:40:38 +08:00