OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b074eae
)
drm/i915: Properly terminate KMS mode name string during tv init
author
Imre Deak
<imre.deak@intel.com>
Fri, 29 Jan 2016 12:52:29 +0000
(14:52 +0200)
committer
Imre Deak
<imre.deak@intel.com>
Tue, 2 Feb 2016 16:28:32 +0000
(18:28 +0200)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/1454071949-24677-4-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_tv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_tv.c
b/drivers/gpu/drm/i915/intel_tv.c
index
948cbff
..
5034b00
100644
(file)
--- a/
drivers/gpu/drm/i915/intel_tv.c
+++ b/
drivers/gpu/drm/i915/intel_tv.c
@@
-1420,6
+1420,7
@@
intel_tv_get_modes(struct drm_connector *connector)
if (!mode_ptr)
continue;
strncpy(mode_ptr->name, input->name, DRM_DISPLAY_MODE_LEN);
+ mode_ptr->name[DRM_DISPLAY_MODE_LEN - 1] = '\0';
mode_ptr->hdisplay = hactive_s;
mode_ptr->hsync_start = hactive_s + 1;