summaryrefslogtreecommitdiff
path: root/drivers/timer/timer-uclass.c
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-08-05 17:10:26 +0100
committerTom Rini <[email protected]>2025-08-15 12:59:50 -0600
commit145a6f447e47f679218f8886c06622b19f4e22a6 (patch)
tree9a9ca090355b18add99c4c8ac8583c687f94497e /drivers/timer/timer-uclass.c
parentc39a8001ca862fbb676ddb788bc86f22c243bb88 (diff)
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 <[email protected]>
Diffstat (limited to 'drivers/timer/timer-uclass.c')
0 files changed, 0 insertions, 0 deletions