|
@@ -273,7 +273,6 @@ bios_shadow(struct drm_device *dev)
|
|
mthd->score = score_vbios(bios, mthd->rw);
|
|
mthd->score = score_vbios(bios, mthd->rw);
|
|
mthd->size = bios->length;
|
|
mthd->size = bios->length;
|
|
mthd->data = bios->data;
|
|
mthd->data = bios->data;
|
|
- bios->data = NULL;
|
|
|
|
} while (mthd->score != 3 && (++mthd)->shadow);
|
|
} while (mthd->score != 3 && (++mthd)->shadow);
|
|
|
|
|
|
mthd = shadow_methods;
|
|
mthd = shadow_methods;
|
|
@@ -282,8 +281,7 @@ bios_shadow(struct drm_device *dev)
|
|
if (mthd->score > best->score) {
|
|
if (mthd->score > best->score) {
|
|
kfree(best->data);
|
|
kfree(best->data);
|
|
best = mthd;
|
|
best = mthd;
|
|
- } else
|
|
|
|
- kfree(mthd->data);
|
|
|
|
|
|
+ }
|
|
} while ((++mthd)->shadow);
|
|
} while ((++mthd)->shadow);
|
|
|
|
|
|
if (best->score) {
|
|
if (best->score) {
|