mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
media: rzg2l-cru: Fix missing error code in rzg2l_cru_start_streaming_vq()
Failed to allocate scratch buffer, add the error code '-ENOMEM' to the return value 'ret'. drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c:676 rzg2l_cru_start_streaming_vq() warn: missing error code 'ret'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3275 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
7de53a06ea
commit
e54334cdf8
1 changed files with 1 additions and 0 deletions
|
@ -673,6 +673,7 @@ static int rzg2l_cru_start_streaming_vq(struct vb2_queue *vq, unsigned int count
|
|||
if (!cru->scratch) {
|
||||
return_unused_buffers(cru, VB2_BUF_STATE_QUEUED);
|
||||
dev_err(cru->dev, "Failed to allocate scratch buffer\n");
|
||||
ret = -ENOMEM;
|
||||
goto free_image_conv_irq;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue