diff options
author | 2021-03-06 15:30:28 +0100 | |
---|---|---|
committer | 2021-03-22 10:21:03 +0100 | |
commit | b9302fa7ed979e84b454e4ca92192cf485a4ed41 (patch) | |
tree | b660f692970ee950c46ff1ece60c7bf2e481cf5e /include/uapi/linux/v4l2-subdev.h | |
parent | media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming() (diff) | |
download | linux-rng-b9302fa7ed979e84b454e4ca92192cf485a4ed41.tar.xz linux-rng-b9302fa7ed979e84b454e4ca92192cf485a4ed41.zip |
media: tuners: fix error return code of hybrid_tuner_request_state()
When kzalloc() fails and state is NULL, no error return code is
assigned.
To fix this bug, __ret is assigned with -ENOMEM in this case.
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/uapi/linux/v4l2-subdev.h')
0 files changed, 0 insertions, 0 deletions