Skip to content
Commit f14f6aa0 authored by Souptick Joarder's avatar Souptick Joarder Committed by Mauro Carvalho Chehab
Browse files

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: default avatarSouptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: rebase and remove empty line before the if]
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent e6f8bd59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment