kernel_samsung_a53x/drivers/media/usb/go7007
Zhipeng Lu ecc907a9bd media: go7007: fix a memleak in go7007_load_encoder
[ Upstream commit b9b683844b01d171a72b9c0419a2d760d946ee12 ]

In go7007_load_encoder, bounce(i.e. go->boot_fw), is allocated without
a deallocation thereafter. After the following call chain:

saa7134_go7007_init
  |-> go7007_boot_encoder
        |-> go7007_load_encoder
  |-> kfree(go)

go is freed and thus bounce is leaked.

Fixes: 95ef39403f89 ("[media] go7007: remember boot firmware")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:55 +01:00
..
go7007-driver.c media: go7007: fix a memleak in go7007_load_encoder 2024-11-19 08:44:55 +01:00
go7007-fw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
go7007-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
go7007-loader.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
go7007-priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
go7007-usb.c media: go7007: add check of return value of go7007_read_addr() 2024-11-19 08:44:54 +01:00
go7007-v4l2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s2250-board.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
snd-go7007.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00