]> git.baikalelectronics.ru Git - kernel.git/commit
drm radeon: Return -EINVAL on wrong pm sysfs access
authorThomas Renninger <trenn@suse.de>
Wed, 23 Mar 2011 15:14:09 +0000 (15:14 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Mar 2011 10:24:49 +0000 (20:24 +1000)
commitc491cf5b707818a72c852162b5eec9298a2b0084
tree8847ef1145d3a766e15fc8d4b5918b09eed60196
parent22ed4ee1d2e394164f632538b3dd6836bfd0e1cc
drm radeon: Return -EINVAL on wrong pm sysfs access

Throw an error if someone tries to fill this with
wrong data, instead of simply ignoring the input.
Now you get:

echo hello >/sys/../power_method
-bash: echo: write error: Invalid argument

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: Alexander.Deucher@amd.com
CC: dri-devel@lists.freedesktop.org
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c