linux/drivers/media/usb/go7007
Zhipeng Lu b9b683844b media: go7007: fix a memleak in go7007_load_encoder
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: 95ef39403f ("[media] go7007: remember boot firmware")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-02-28 16:00:33 +01:00
..
go7007-driver.c media: go7007: fix a memleak in go7007_load_encoder 2024-02-28 16:00:33 +01:00
go7007-fw.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
go7007-i2c.c media: go7007: Remove redundant if statement 2023-08-10 07:58:32 +02:00
go7007-loader.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
go7007-priv.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
go7007-usb.c media: go7007: add check of return value of go7007_read_addr() 2024-02-16 11:46:33 +01:00
go7007-v4l2.c media: go7007: don't modify q->streaming 2023-02-06 09:01:05 +01:00
Kconfig media: v4l: Use correct dependency for camera sensor drivers 2023-09-14 12:38:17 +02:00
Makefile media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
s2250-board.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
snd-go7007.c media: go7007: Constify static struct snd_device_ops 2022-02-22 09:41:11 +01:00