commit | 94a90312e4ef1b03469086d41fedfa55e67a1532 | [log] [tgz] |
---|---|---|
author | Chris J Arges <chris.j.arges@canonical.com> | Fri Dec 05 17:02:42 2014 -0600 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Fri Jan 09 10:55:16 2015 -0700 |
tree | e115eae3c5c4cdad5eda0e324259a9a28d323320 | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 [diff] |
PCI/ASPM: Use standard parsing functions for sysfs setters The functions link_state_store() and clk_ctl_store() had just subtracted ASCII '0' from input which could lead to undesired results. Instead, use Linux string functions to safely parse input. [bhelgaas: check kstrtouint() return value] Signed-off-by: Chris J Arges <chris.j.arges@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>