Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126391
b: refs/heads/master
c: c00b1b7
h: refs/heads/master
i:
  126389: 18a9bf3
  126387: ca6423c
  126383: a15cc32
v: v3
  • Loading branch information
roel kluin authored and Linus Torvalds committed Jan 6, 2009
1 parent 0ab28f6 commit e9a5b01
Show file tree
Hide file tree
Showing 2 changed files with 4 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: fd002050becd888e4dab419aa59a6484afe1d00b
refs/heads/master: c00b1b7d19d335f96aa03ef2e4e71b7fb4fdb056
6 changes: 3 additions & 3 deletions trunk/drivers/video/sm501fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ static int sm501_alloc_mem(struct sm501fb_info *inf, struct sm501_mem *mem,
break;

case SM501_MEMF_PANEL:
if (size > inf->fbmem_len)
return -ENOMEM;

ptr = inf->fbmem_len - size;
fbi = inf->fb[HEAD_CRT];

Expand All @@ -172,9 +175,6 @@ static int sm501_alloc_mem(struct sm501fb_info *inf, struct sm501_mem *mem,
if (fbi && ptr < fbi->fix.smem_len)
return -ENOMEM;

if (ptr < 0)
return -ENOMEM;

break;

case SM501_MEMF_CRT:
Expand Down

0 comments on commit e9a5b01

Please sign in to comment.