Hey Dan,
On Thu, Jan 21, 2021 at 09:08:05AM +0300, Dan Carpenter wrote:
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")
Signed-off-by: Dan Carpenter <redacted>
Thanks for the patch. As this is a fix, I've backported it to net/master, which
is before the split of the dev.c into separate files. Applied to
linux-can/testing.
regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |