Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294287
b: refs/heads/master
c: c572c8b
h: refs/heads/master
i:
  294285: 34304ec
  294283: fe154ce
  294279: a9d6c7a
  294271: 5676b3e
v: v3
  • Loading branch information
Dan Carpenter authored and Florian Tobias Schandinat committed Feb 17, 2012
1 parent 5383528 commit 4bbeebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 7b918120489ea004388b7370194222671e657203
refs/heads/master: c572c8bbff13591f6c9f249d4413f79ddda21e61
7 changes: 5 additions & 2 deletions trunk/drivers/video/via/via_aux_edid.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ static void query_edid(struct via_aux_drv *drv)
unsigned char edid[EDID_LENGTH];
bool valid = false;

if (spec)
if (spec) {
fb_destroy_modedb(spec->modedb);
else
} else {
spec = kmalloc(sizeof(*spec), GFP_KERNEL);
if (!spec)
return;
}

spec->version = spec->revision = 0;
if (via_aux_read(drv, 0x00, edid, EDID_LENGTH)) {
Expand Down

0 comments on commit 4bbeebd

Please sign in to comment.