summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChris J Arges <chris.j.arges@canonical.com>2014-12-06 00:02:42 +0100
committerBjorn Helgaas <bhelgaas@google.com>2015-01-09 18:55:16 +0100
commit94a90312e4ef1b03469086d41fedfa55e67a1532 (patch)
treee115eae3c5c4cdad5eda0e324259a9a28d323320 /init
parentLinux 3.19-rc1 (diff)
downloadlinux-94a90312e4ef1b03469086d41fedfa55e67a1532.tar.xz
linux-94a90312e4ef1b03469086d41fedfa55e67a1532.zip
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions