Andrew Goodbody
145a6f447e
net: phy: cortina: Ensure memory allocated is freed
...
In cs4340_upload_firmware a buffer is allocated with malloc but this is
never freed. The pointer to this buffer, addr, is not even kept
unchanged. But in some cases addr is not a buffer allocated by malloc.
Introduce the use of another pointer to keep track of the buffer and to
know if it needs to be freed.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
2025-08-15 12:59:50 -06:00
..
2024-05-20 13:35:03 -06:00
2025-08-01 10:42:22 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-06-14 09:09:39 -06:00
2025-08-15 12:59:50 -06:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2023-11-10 11:01:50 -05:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-08-01 10:42:22 +02:00
2024-07-22 10:53:05 -06:00
2025-07-09 08:45:27 -06:00
2024-05-20 13:35:03 -06:00
2025-01-01 14:35:54 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-07-10 08:40:45 -06:00
2025-03-11 23:05:57 +01:00
2025-01-01 14:40:04 -06:00
2023-09-24 09:54:57 -04:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:05 -06:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-08-01 10:42:22 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-01-30 19:28:33 -06:00
2022-01-15 18:50:16 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00