Skip to content

Commit 3e465fc

Browse files
committed
Revert "media: rcar_drif: fix a memory disclosure"
This reverts commit d390832. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, it was determined that this commit is not needed at all as the media core already prevents memory disclosure on this codepath, so just drop the extra memset happening here. Cc: Kangjie Lu <kjlu@umn.edu> Cc: Geert Uytterhoeven <geert+renesas@glider.be> Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Fixes: d390832 ("media: rcar_drif: fix a memory disclosure") Cc: stable <stable@vger.kernel.org> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com> Link: https://lore.kernel.org/r/20210503115736.2104747-4-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6a3239a commit 3e465fc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/media/platform/rcar_drif.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv,
915915
{
916916
struct rcar_drif_sdr *sdr = video_drvdata(file);
917917

918-
memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
919918
f->fmt.sdr.pixelformat = sdr->fmt->pixelformat;
920919
f->fmt.sdr.buffersize = sdr->fmt->buffersize;
921920

0 commit comments

Comments
 (0)