[PATCH master] device: use free_const to free device/bobject name
Sascha Hauer
s.hauer at pengutronix.de
Mon Nov 17 00:36:35 PST 2025
On Thu, 13 Nov 2025 12:08:31 +0100, Sascha Hauer wrote:
> A device name (and thus a bobject name) may be statically allocated. Use
> free_const() to handle this gracefully.
>
> bobject_set_name() called from dev_set_name() also assumes that
> dev->name is allocated and frees the existing name. Use free_const()
> here as well.
>
> [...]
Applied, thanks!
[1/1] device: use free_const to free device/bobject name
https://git.pengutronix.de/cgit/barebox/commit/?id=6c6f7301c4f3 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list