diff options
author | Alexandre Oliva <lxoliva@fsfla.org> | 2010-09-14 03:04:11 +0000 |
---|---|---|
committer | Alexandre Oliva <lxoliva@fsfla.org> | 2010-09-14 03:04:11 +0000 |
commit | 5e8df1570896f733c4f4dbf672d9dce894923ae7 (patch) | |
tree | 1c6e7df2409ae03b9367cd53c9a3cedbd7317fe0 /freed-ora/current/f13/drm-nouveau-acpi-edid-fix.patch | |
parent | 71b42332c1ccc781cac55e6a65dc8835c3310fd0 (diff) | |
download | linux-libre-raptor-5e8df1570896f733c4f4dbf672d9dce894923ae7.tar.gz linux-libre-raptor-5e8df1570896f733c4f4dbf672d9dce894923ae7.zip |
2.6.34.6-55.fc13
Diffstat (limited to 'freed-ora/current/f13/drm-nouveau-acpi-edid-fix.patch')
-rw-r--r-- | freed-ora/current/f13/drm-nouveau-acpi-edid-fix.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/freed-ora/current/f13/drm-nouveau-acpi-edid-fix.patch b/freed-ora/current/f13/drm-nouveau-acpi-edid-fix.patch new file mode 100644 index 000000000..52c6662ac --- /dev/null +++ b/freed-ora/current/f13/drm-nouveau-acpi-edid-fix.patch @@ -0,0 +1,29 @@ +From 3a25c2ea8bd898dff218ef8baa09ea1f05a60b48 Mon Sep 17 00:00:00 2001 +From: Ben Skeggs <bskeggs@redhat.com> +Date: Fri, 10 Sep 2010 15:33:11 +1000 +Subject: [PATCH] drm/nouveau: we can't free ACPI EDID, so make a copy that we can + +The rest of the connector code assumes we can kfree() the EDID pointer. +This causes things to blow up with the ACPI EDID pointer we get +passed. + +Signed-off-by: Ben Skeggs <bskeggs@redhat.com> +--- + drivers/gpu/drm/nouveau/nouveau_acpi.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c +index c17a055..1191526 100644 +--- a/drivers/gpu/drm/nouveau/nouveau_acpi.c ++++ b/drivers/gpu/drm/nouveau/nouveau_acpi.c +@@ -292,6 +292,6 @@ nouveau_acpi_edid(struct drm_device *dev, struct drm_connector *connector) + if (ret < 0) + return ret; + +- nv_connector->edid = edid; ++ nv_connector->edid = kmemdup(edid, EDID_LENGTH, GFP_KERNEL); + return 0; + } +-- +1.7.2.2 + |