# Re: \[PATCH can tree\] can: dev: prevent potential information leak in can\_fill\_info()

- From: Marc Kleine-Budde \<mkl@pengutronix.de\>
- Date: 2021-01-21 07:38:46 
- List: linux-can
- Page: https://ratatoskr.run/linux-can/2021/01/9355255
- Thread: https://ratatoskr.run/linux-can/2021/01/9355254/t.md

```text
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 |
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-can/2021/01/9355255/attachment/0) (application/pgp-signature, 488 bytes)
