]> git.baikalelectronics.ru Git - kernel.git/commit
media: videobuf2: Return error after allocation failure
authorSouptick Joarder <jrdr.linux@gmail.com>
Mon, 4 Feb 2019 15:01:43 +0000 (10:01 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 18:03:55 +0000 (14:03 -0400)
commit51f380d032df94d2d729f5a3e96f216943b27e16
tree8a525fce169c513bc2374bb5fffd87fd6e2c3f04
parent3e3a22aba6b05eafcc88690be4ef57ee15878524
media: videobuf2: Return error after allocation failure

There is no point to continuing assignment after memory allocation
failed, rather throw error immediately.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: rebase and remove empty line before the if]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-vmalloc.c