Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17663
b: refs/heads/master
c: def1ede
h: refs/heads/master
i:
  17661: 2e640b8
  17659: af0dd1f
  17655: ff82bf2
  17647: 0c936d2
  17631: 7cfa14b
  17599: 7f16c62
  17535: 36583f9
  17407: bd354ad
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jan 10, 2006
1 parent dcee63c commit 5ac8c4b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a39bc34ea8f042e090ade124726ae5a3fd1a51f8
refs/heads/master: def1ededb7bfefc8678b4c7251622f7cbe65af94
3 changes: 1 addition & 2 deletions trunk/drivers/video/fbcvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/video/fbmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,9 @@ static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize)
unsigned char *block;
int num = 0, i;

mode = kmalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL);
mode = kzalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL);
if (mode == NULL)
return NULL;
memset(mode, 0, 50 * sizeof(struct fb_videomode));

if (edid == NULL || !edid_checksum(edid) ||
!edid_check_header(edid)) {
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/video/fbsysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ struct fb_info *framebuffer_alloc(size_t size, struct device *dev)
if (size)
fb_info_size += PADDING;

p = kmalloc(fb_info_size + size, GFP_KERNEL);
p = kzalloc(fb_info_size + size, GFP_KERNEL);

if (!p)
return NULL;
memset(p, 0, fb_info_size + size);

info = (struct fb_info *) p;

if (size)
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/video/vgastate.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,11 @@ int save_vga(struct vgastate *state)
{
struct regstate *saved;

saved = kmalloc(sizeof(struct regstate), GFP_KERNEL);
saved = kzalloc(sizeof(struct regstate), GFP_KERNEL);

if (saved == NULL)
return 1;
memset (saved, 0, sizeof(struct regstate));

state->vidstate = (void *)saved;

if (state->flags & VGA_SAVE_CMAP) {
Expand Down

0 comments on commit 5ac8c4b

Please sign in to comment.