diff options
| author | Dan Carpenter <[email protected]> | 2017-07-10 07:21:40 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2017-07-12 12:42:37 +0000 |
| commit | 2ca30331c156ca9e97643ad05dd8930b8fe78b01 (patch) | |
| tree | 8c5768fcd1d7c13278b27fcbfcaf83d48683a228 /lib/errseq.c | |
| parent | PM / QoS: constify *_attribute_group. (diff) | |
| download | kernel-2ca30331c156ca9e97643ad05dd8930b8fe78b01.tar.gz kernel-2ca30331c156ca9e97643ad05dd8930b8fe78b01.zip | |
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 <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Cc: 3.15+ <[email protected]> # 3.15+
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/errseq.c')
0 files changed, 0 insertions, 0 deletions
