diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2023-10-18 08:52:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-21 12:55:23 +0300 |
commit | 75fd2810b08a4854af3928121a301e50376288d2 (patch) | |
tree | 8dcddd4c1bbfb9d06dceff4304b5e31b11d83098 /include/linux/mod_devicetable.h | |
parent | 875be090928d19ff4ae7cbaadb54707abb3befdf (diff) | |
download | linux-75fd2810b08a4854af3928121a301e50376288d2.tar.xz |
staging: vc04_services: vchiq_bus: Do not kfree device
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.
Fixes: 027e5703de6b ("staging: vc04_services: vchiq_arm: Add new bus type and device type")
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/20231018055228.825524-1-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/mod_devicetable.h')
0 files changed, 0 insertions, 0 deletions