rk29fb:memset rk29_ipp_req when create ipp_req
authoryzq <yzq@rock-chips.com>
Tue, 27 Sep 2011 01:47:49 +0000 (09:47 +0800)
committeryzq <yzq@rock-chips.com>
Tue, 27 Sep 2011 01:57:54 +0000 (09:57 +0800)
drivers/video/rk29_fb.c

index 497bed843afb937654d6ac56440b7a2945e118ba..a05b3632e8f88621192b6249b92f694b957ca5a0 100755 (executable)
@@ -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__);