X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fvideo%2Ffbcvt.c;h=ac90883dc3aa310ea23016ba9cf01f95165f91ba;hb=d649dafd0713f2f3dfe29baa783868db33aa2c11;hp=0b6af00d197e058af63663fad76fe84d6c802d57;hpb=a1e78db3f54d3481726ed2d3d58d8ad5b19b13d0;p=powerpc.git diff --git a/drivers/video/fbcvt.c b/drivers/video/fbcvt.c index 0b6af00d19..ac90883dc3 100644 --- a/drivers/video/fbcvt.c +++ b/drivers/video/fbcvt.c @@ -214,12 +214,11 @@ static void fb_cvt_print_name(struct fb_cvt_data *cvt) { u32 pixcount, pixcount_mod; int cnt = 255, offset = 0, read = 0; - u8 *buf = kmalloc(256, GFP_KERNEL); + u8 *buf = kzalloc(256, GFP_KERNEL); if (!buf) return; - memset(buf, 0, 256); pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000; pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000; pixcount_mod /= 1000;