diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-01-21 09:08:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-03 23:19:51 +0100 |
commit | dd163aa3bc796ed1cbeaee4492ebc059b6871ac6 (patch) | |
tree | edf5771a10c9b21cddb73c8bcb44b7e9322aba29 /kernel/locking/rtmutex-debug.c | |
parent | 0e833abd02ff967cda9322653cbaf10c807e9a66 (diff) |
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>
Diffstat (limited to 'kernel/locking/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions