]> git.baikalelectronics.ru Git - kernel.git/commit
media: aspeed: fix an incorrect return code on buffer allocation failure
authorJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Fri, 23 Aug 2019 21:29:57 +0000 (18:29 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 26 Aug 2019 13:46:29 +0000 (10:46 -0300)
commit51d54ea9b036fa9445b9605a8bbd1653d4a85e7b
treed3551d3ab232f5381b0890dc50b482f5f420efa3
parent7d4f6d9c17edc728748e8c5abdbccfb9c24c88e7
media: aspeed: fix an incorrect return code on buffer allocation failure

It returns '0' even when a failure happens on jpeg buffer allocation
so this commit fixes the issue.

Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/aspeed-video.c