OpenCloudOS-Kernel/drivers/media/common/saa7146
Christophe JAILLET b2aa8ac6f9 media: common: saa7146: Avoid a leak in vmalloc_to_sg()
Commit in Fixes turned a BUG() into a "normal" memory allocation failure.
While at it, it introduced a memory leak.
So fix it.

Also update the comment on top of the function to reflect what has been
change by the commit in Fixes.

Fixes: 40e986c996 ("media: common: saa7146: replace BUG_ON by WARN_ON")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-05-25 16:21:20 +02:00
..
Kconfig media: saa7146: convert to vb2 2023-04-15 08:53:31 +01:00
Makefile media: Revert "media: saa7146: deprecate hexium_gemini/orion, mxb and ttpci" 2023-02-09 09:22:36 +01:00
saa7146_core.c media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
saa7146_fops.c media: common: saa7146: fix compliance problems with field handling 2023-04-15 08:53:53 +01:00
saa7146_hlp.c media: common: saa7146: replace BUG_ON by WARN_ON 2023-04-15 08:51:21 +01:00
saa7146_i2c.c media: Revert "media: saa7146: deprecate hexium_gemini/orion, mxb and ttpci" 2023-02-09 09:22:36 +01:00
saa7146_vbi.c media: saa7146: convert to vb2 2023-04-15 08:53:31 +01:00
saa7146_video.c media: common: saa7146: add support for missing .vidioc_try_fmt_vbi_cap 2023-04-15 08:55:16 +01:00