summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-07-10 10:21:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-21 08:12:23 +0200
commit9abcd35a85b1658ed30fcdc706db2f49ada66b65 (patch)
treee6e10367c23c6072fb7987fb3bc4556cc56028b0 /kernel/trace
parent8f70f49650b428378320c12dee41122d9f9e258e (diff)
downloadlinux-9abcd35a85b1658ed30fcdc706db2f49ada66b65.tar.gz
linux-9abcd35a85b1658ed30fcdc706db2f49ada66b65.tar.bz2
linux-9abcd35a85b1658ed30fcdc706db2f49ada66b65.zip
PM / QoS: return -EINVAL for bogus strings
commit 2ca30331c156ca9e97643ad05dd8930b8fe78b01 upstream. In the current code, if the user accidentally writes a bogus command to this sysfs file, then we set the latency tolerance to an uninitialized variable. Fixes: 2d984ad132a8 (PM / QoS: Introcuce latency tolerance device PM QoS type) Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions