diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-01-20 09:33:37 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-27 08:32:16 +0100 |
commit | 8089651cd9edea2663d8e51a2199df8570f8ab45 (patch) | |
tree | 15741e9b79ade6893945d97f9d6a96b1e14e6282 | |
parent | media: v4l2-ctrls.c: fix shift-out-of-bounds in std_validate (diff) | |
download | linux-8089651cd9edea2663d8e51a2199df8570f8ab45.tar.xz linux-8089651cd9edea2663d8e51a2199df8570f8ab45.zip |
media: meson/ge2d: set ret to -ENOMEM
Fix this smatch warning:
drivers/media/platform/meson/ge2d/ge2d.c:991 ge2d_probe() warn: missing error code 'ret'
when video_device_alloc() returns NULL.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | drivers/media/platform/meson/ge2d/ge2d.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/meson/ge2d/ge2d.c b/drivers/media/platform/meson/ge2d/ge2d.c index f526501bd473..153612ca96fc 100644 --- a/drivers/media/platform/meson/ge2d/ge2d.c +++ b/drivers/media/platform/meson/ge2d/ge2d.c @@ -988,6 +988,7 @@ static int ge2d_probe(struct platform_device *pdev) vfd = video_device_alloc(); if (!vfd) { v4l2_err(&ge2d->v4l2_dev, "Failed to allocate video device\n"); + ret = -ENOMEM; goto unreg_v4l2_dev; } |