Files
linux/drivers
Christophe JAILLET 172146c26f cassini: Fix a memory leak in the error handling path of cas_init_one()
[ Upstream commit 412cd77a2c ]

cas_saturn_firmware_init() allocates some memory using vmalloc(). This
memory is freed in the .remove() function but not it the error handling
path of the probe.

Add the missing vfree() to avoid a memory leak, should an error occur.

Fixes: fcaa40669c ("cassini: use request_firmware")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:47 +01:00
..
2023-05-24 17:32:38 +01:00
2023-02-09 11:28:25 +01:00
2023-05-11 23:03:28 +09:00
2023-04-06 12:10:44 +02:00
2023-03-10 09:34:32 +01:00