linux/drivers/staging
Umang Jain 404b739e89 staging: vchiq_arm: Use devm_kzalloc() for vchiq_arm_state allocation
The struct vchiq_arm_state 'platform_state' is currently allocated
dynamically using kzalloc(). Unfortunately, it is never freed and is
subjected to memory leaks in the error handling paths of the probe()
function.

To address the issue, use device resource management helper
devm_kzalloc(), to ensure cleanup after its allocation.

Fixes: 71bad7f086 ("staging: add bcm2708 vchiq driver")
Cc: stable@vger.kernel.org
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20241016130225.61024-2-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-19 10:04:57 +02:00
..
axis-fifo staging: axis-fifo: Fix indentation 2024-04-09 17:44:54 +02:00
fbtft staging: fbtft: Use backlight power constants 2024-08-13 11:26:12 +02:00
fieldbus driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
gdm724x staging: gdm724x: constantify the struct device_type usage 2024-02-17 17:30:35 +01:00
greybus Revert "staging: greybus: Fix capitalization and punctuation inconsistencies" 2024-09-11 15:56:26 +02:00
iio Merge 6.11-rc7 into char-misc-next 2024-09-09 08:36:23 +02:00
media move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
most staging: most: video: Fixed minor capitalization and grammatical issues 2024-07-30 09:20:26 +02:00
nvec staging: nvec: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-13 07:30:23 +02:00
octeon netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
olpc_dcon staging: olpc_dcon: Use backlight power constants 2024-08-13 11:26:13 +02:00
rtl8192e move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rtl8712 staging: rtl8712: remove unused drvinfo_sz from update_recvframe_attrib 2024-09-13 07:31:55 +02:00
rtl8723bs move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rts5208 Staging driver changes for 6.10-rc1 2024-05-22 12:11:48 -07:00
sm750fb video/nomodeset: Select nomodeset= parameter with CONFIG_VIDEO 2024-01-23 10:11:38 +01:00
vc04_services staging: vchiq_arm: Use devm_kzalloc() for vchiq_arm_state allocation 2024-10-19 10:04:57 +02:00
vme_user staging: vme_user: changed geoid data type from int to u32 2024-09-05 16:45:01 +02:00
vt6655 staging: vt6655: Rename variable apTD1Rings 2024-09-13 07:32:50 +02:00
vt6656 Staging driver updates for 6.11-rc1 2024-07-19 15:46:29 -07:00
Kconfig staging: ks7010: Remove unused driver 2024-07-30 09:21:00 +02:00
Makefile staging: ks7010: Remove unused driver 2024-07-30 09:21:00 +02:00