From 792e313d07829d947ad8daa0d8e57e4784e43cb5 Mon Sep 17 00:00:00 2001 From: zhangdengyu Date: Tue, 15 Nov 2022 16:48:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=A2=9E=E5=BC=BA=E5=AF=B9LOS=5FA?= =?UTF-8?q?rchCopyToUser=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E9=98=B2=E6=8A=A4=20Close:=20#I61CLY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangdengyu Change-Id: I9a0b97685599b74d7fe90f14a0c38bebd6e75166 --- drivers/video/fb.c | 8 ++++---- fs/inode/fs_files.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/fb.c b/drivers/video/fb.c index 8f4157f..39b618e 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -398,7 +398,7 @@ static int fb_ioctl(struct file *filep, int cmd, unsigned long arg) case FBIOGET_VIDEOINFO: /* Get color plane info */ { - struct fb_videoinfo_s vinfo; + struct fb_videoinfo_s vinfo = { 0 }; DEBUGASSERT(fb->vtable != NULL && fb->vtable->getvideoinfo != NULL); @@ -416,7 +416,7 @@ static int fb_ioctl(struct file *filep, int cmd, unsigned long arg) case FBIOGET_PLANEINFO: /* Get video plane info */ { - struct fb_planeinfo_s pinfo; + struct fb_planeinfo_s pinfo = { 0 }; DEBUGASSERT(fb->vtable != NULL && fb->vtable->getplaneinfo != NULL); @@ -435,7 +435,7 @@ static int fb_ioctl(struct file *filep, int cmd, unsigned long arg) #ifdef CONFIG_FB_CMAP case FBIOGET_CMAP: /* Get RGB color mapping */ { - struct fb_cmap_s cmap; + struct fb_cmap_s cmap = { 0 }; DEBUGASSERT(fb->vtable != NULL && fb->vtable->getcmap != NULL); @@ -470,7 +470,7 @@ static int fb_ioctl(struct file *filep, int cmd, unsigned long arg) #ifdef CONFIG_FB_HWCURSOR case FBIOGET_CURSOR: /* Get cursor attributes */ { - struct fb_cursorattrib_s attrib; + struct fb_cursorattrib_s attrib = { 0 }; DEBUGASSERT(fb->vtable != NULL && fb->vtable->getcursor != NULL); diff --git a/fs/inode/fs_files.c b/fs/inode/fs_files.c index 2d4cba3..730d982 100644 --- a/fs/inode/fs_files.c +++ b/fs/inode/fs_files.c @@ -60,7 +60,7 @@ #define ferr PRINTK #if CONFIG_NFILE_DESCRIPTORS > 0 -struct filelist tg_filelist; +struct filelist tg_filelist = { 0 }; #endif /**************************************************************************** -- GitLab