Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114864
b: refs/heads/master
c: 9350cc9
h: refs/heads/master
v: v3
  • Loading branch information
Michal Januszewski authored and Linus Torvalds committed Oct 16, 2008
1 parent 62bd152 commit 3961016
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: c0dd504cea3703c3ec9bfd810e6bd649680afd37
refs/heads/master: 9350cc90ca8a72bc1974f76a9922f91ced84a5cf
11 changes: 8 additions & 3 deletions trunk/drivers/video/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,12 @@ static int __devinit uvesafb_vbe_getmodes(struct uvesafb_ktask *task,

err = uvesafb_exec(task);
if (err || (task->t.regs.eax & 0xffff) != 0x004f) {
printk(KERN_ERR "uvesafb: Getting mode info block "
printk(KERN_WARNING "uvesafb: Getting mode info block "
"for mode 0x%x failed (eax=0x%x, err=%d)\n",
*mode, (u32)task->t.regs.eax, err);
return -EINVAL;
mode++;
par->vbe_modes_cnt--;
continue;
}

mib = task->buf;
Expand Down Expand Up @@ -548,7 +550,10 @@ static int __devinit uvesafb_vbe_getmodes(struct uvesafb_ktask *task,
mib->depth = mib->bits_per_pixel;
}

return 0;
if (par->vbe_modes_cnt > 0)
return 0;
else
return -EINVAL;
}

/*
Expand Down

0 comments on commit 3961016

Please sign in to comment.