commit | 2ca30331c156ca9e97643ad05dd8930b8fe78b01 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Jul 10 10:21:40 2017 +0300 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Jul 12 14:42:37 2017 +0200 |
tree | 8c5768fcd1d7c13278b27fcbfcaf83d48683a228 | |
parent | dbb1d8b70c222544e9b54fdb3e22c15745be0155 [diff] |
PM / QoS: return -EINVAL for bogus strings 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> Cc: 3.15+ <stable@vger.kernel.org> # 3.15+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>