[PATCH] staging: vc04_services: vchiq_bus: Do not kfree device
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Mon Oct 9 03:16:14 PDT 2023
On Mon, Oct 09, 2023 at 11:39:06AM +0530, Umang Jain wrote:
> As per device_register() documentation, this kfree() on error path will
> crash. The call to put_device() is all that is needed here to free the
> memory.
>
> Signed-off-by: Umang Jain <umang.jain at ideasonboard.com>
> ---
> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_bus.c | 1 -
> 1 file changed, 1 deletion(-)
This needs a "Fixes:" tag, right?
thanks,
greg k-h
More information about the linux-rpi-kernel
mailing list