From: Chris J Arges Date: Fri, 5 Dec 2014 23:02:42 +0000 (-0600) Subject: PCI/ASPM: Use standard parsing functions for sysfs setters X-Git-Tag: fixes-v4.0-rc1~161^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94a90312e4ef1b03469086d41fedfa55e67a1532;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed