From: yzq Date: Tue, 27 Sep 2011 01:47:49 +0000 (+0800) Subject: rk29fb:memset rk29_ipp_req when create ipp_req X-Git-Tag: firefly_0821_release~9766^2~52 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=17669e30c0df7521dbba9178367c3a7eb09ffb0c;p=firefly-linux-kernel-4.4.55.git rk29fb:memset rk29_ipp_req when create ipp_req --- diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c index 497bed843afb..a05b3632e8f8 100755 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -1458,6 +1458,7 @@ static int fb0_set_par(struct fb_info *info) #ifdef CONFIG_FB_SCALING_OSD struct rk29_ipp_req ipp_req; u32 dstoffset=0; + memset(&ipp_req, 0, sizeof(struct rk29_ipp_req)); #endif fbprintk(">>>>>> %s : %s\n", __FILE__, __FUNCTION__); @@ -1608,6 +1609,7 @@ static int fb0_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) struct fb_fix_screeninfo *fix = &info->fix; struct rk29_ipp_req ipp_req; u32 dstoffset = 0; + memset(&ipp_req, 0, sizeof(struct rk29_ipp_req)); #endif //fbprintk(">>>>>> %s : %s \n", __FILE__, __FUNCTION__); @@ -2090,7 +2092,7 @@ static int fb1_set_par(struct fb_info *info) struct rk29_ipp_req ipp_req; static u32 dstoffset = 0; static int fb_index = 0; - + memset(&ipp_req, 0, sizeof(struct rk29_ipp_req)); yuv_phy[0] = last_yuv_phy[0]; yuv_phy[1] = last_yuv_phy[1]; yuv_phy[0] += par->y_offset; @@ -2258,7 +2260,7 @@ static int fb1_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) struct rk29fb_screen *screen = inf->cur_screen; struct rk29_ipp_req ipp_req; static u32 dstoffset = 0; - + memset(&ipp_req, 0, sizeof(struct rk29_ipp_req)); #endif fbprintk(">>>>>> %s : %s \n", __FILE__, __FUNCTION__);