Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetti...
details: https://anonhg.NetBSD.org/xsrc/rev/03bc2e37c6d5
branches: trunk
changeset: 10087:03bc2e37c6d5
user: maya <maya%NetBSD.org@localhost>
date: Thu Jan 10 14:33:11 2019 +0000
description:
pEnt isn't initialized at this point, don't free it
Undo diff to upstream.
There's a good chance we aren't using this code at all.
diffstat:
external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (20 lines):
diff -r 2201885ed6fd -r 03bc2e37c6d5 external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.c
--- a/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.c Thu Jan 10 14:28:44 2019 +0000
+++ b/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.c Thu Jan 10 14:33:11 2019 +0000
@@ -901,15 +901,12 @@
return FALSE;
if (flags & PROBE_DETECT) {
- free(pEnt);
return FALSE;
}
/* Allocate driverPrivate */
- if (!GetRec(pScrn)) {
- free(pEnt);
+ if (!GetRec(pScrn))
return FALSE;
- }
pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
Home |
Main Index |
Thread Index |
Old Index