On 2021/2/5 下午4:19, Marc Kleine-Budde wrote:
On 05.02.2021 15:25:59, Xulin Sun wrote:
If the previous can_net device has been successfully allocated, its
private data structure is impossible to be empty, remove this redundant
error return judgment. Otherwise, memory leaks for alloc_candev
If the previous can_net device has been successfully allocated, its
private data structure is impossible to be empty, remove this redundant
error return judgment. Otherwise, memory leaks for alloc_candev() will
be triggered.
Signed-off-by: Xulin Sun
---
drivers/net/can/m_can/m_can.c | 5
b9f1>] device_initial_probe+0x28/0x34
[<82e2c85c>] bus_probe_device+0xa4/0xb0
[<cc6181c3>] deferred_probe_work_func+0x7c/0xb0
[<01b85f22>] process_one_work+0x1ec/0x480
Signed-off-by: Xulin Sun
---
drivers/net/can/m_can/m_can_platform.c | 10 --
1 fil
el0_svc_common.constprop.0+0x78/0x190
el0_svc_handler+0x70/0x90
el0_svc+0x8/0xc
Signed-off-by: Xulin Sun
---
drivers/net/ethernet/mscc/ocelot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mscc/ocelot.c
b/drivers/net/ethernet/mscc/ocelot.c
index b4731df186f4
2:
warning: 'strncpy' output truncated before terminating nul copying 3 bytes from
a string of the same length [-Wstringop-truncation]
strncpy(iebuf, add_del_cmd, VNDR_IE_CMD_LEN - 1);
^~~~
Signed-off-by: Xulin Sun
---
drivers/net/wireles