diff options
| -rw-r--r-- | drivers/gpu/drm/drm_property.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm/drm_property.c index 3feef0659940..3e88fa24eab3 100644 --- a/drivers/gpu/drm/drm_property.c +++ b/drivers/gpu/drm/drm_property.c | |||
| @@ -476,7 +476,7 @@ int drm_mode_getproperty_ioctl(struct drm_device *dev, | |||
| 476 | drm_property_type_is(property, DRM_MODE_PROP_BITMASK)) { | 476 | drm_property_type_is(property, DRM_MODE_PROP_BITMASK)) { |
| 477 | list_for_each_entry(prop_enum, &property->enum_list, head) { | 477 | list_for_each_entry(prop_enum, &property->enum_list, head) { |
| 478 | enum_count++; | 478 | enum_count++; |
| 479 | if (out_resp->count_enum_blobs <= enum_count) | 479 | if (out_resp->count_enum_blobs < enum_count) |
| 480 | continue; | 480 | continue; |
| 481 | 481 | ||
| 482 | if (copy_to_user(&enum_ptr[copied].value, | 482 | if (copy_to_user(&enum_ptr[copied].value, |
