mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-20 12:54:36 +08:00
c759b2970c
Add a fix for the memory leak bugs that can occur when the saa7164_encoder_register() function fails. The function allocates memory without explicitly freeing it when errors occur. Add a better error handling that deallocate the unused buffers before the function exits during a fail. Signed-off-by: Daniel Niv <danielniv3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
saa7164-api.c | ||
saa7164-buffer.c | ||
saa7164-bus.c | ||
saa7164-cards.c | ||
saa7164-cmd.c | ||
saa7164-core.c | ||
saa7164-dvb.c | ||
saa7164-encoder.c | ||
saa7164-fw.c | ||
saa7164-i2c.c | ||
saa7164-reg.h | ||
saa7164-types.h | ||
saa7164-vbi.c | ||
saa7164.h |