mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
media: rockchip: isp: fix array overflow
Fixes: 5358e9d0b6 ("media: rockchip: isp: 64 align y size for fbcgain format")
Change-Id: Ic73e28ade0800562eeca1863277dc414c85e49d6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -1654,7 +1654,8 @@ static void rkisp_buf_queue(struct vb2_buffer *vb)
|
||||
struct v4l2_pix_format_mplane *pixm = &stream->out_fmt;
|
||||
struct capture_fmt *isp_fmt = &stream->out_isp_fmt;
|
||||
struct sg_table *sgt;
|
||||
u32 i, val;
|
||||
u32 val;
|
||||
int i;
|
||||
|
||||
memset(ispbuf->buff_addr, 0, sizeof(ispbuf->buff_addr));
|
||||
for (i = 0; i < isp_fmt->mplanes; i++) {
|
||||
|
||||
Reference in New Issue
Block a user