diff options
Diffstat (limited to 'drivers/gpu/drm/drm_sysfs.c')
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index ffc305fc2076..eb7e61078a5b 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c | |||
@@ -217,7 +217,7 @@ static ssize_t status_store(struct device *device, | |||
217 | 217 | ||
218 | mutex_unlock(&dev->mode_config.mutex); | 218 | mutex_unlock(&dev->mode_config.mutex); |
219 | 219 | ||
220 | return ret; | 220 | return ret ? ret : count; |
221 | } | 221 | } |
222 | 222 | ||
223 | static ssize_t status_show(struct device *device, | 223 | static ssize_t status_show(struct device *device, |