Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275254
b: refs/heads/master
c: 471dd2e
h: refs/heads/master
v: v3
  • Loading branch information
Vinson Lee authored and Dave Airlie committed Nov 11, 2011
1 parent a7252d7 commit 886de25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: baa91d640034dd8d0b58a9088f5fefe5cec3c8c4
refs/heads/master: 471dd2ef3761de01348b19e83128a778df1d45b2
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2118,8 +2118,10 @@ struct drm_property *drm_property_create(struct drm_device *dev, int flags,
property->num_values = num_values;
INIT_LIST_HEAD(&property->enum_blob_list);

if (name)
if (name) {
strncpy(property->name, name, DRM_PROP_NAME_LEN);
property->name[DRM_PROP_NAME_LEN-1] = '\0';
}

list_add_tail(&property->head, &dev->mode_config.property_list);
return property;
Expand Down

0 comments on commit 886de25

Please sign in to comment.