diff options
author | John Crispin <john@openwrt.org> | 2013-07-27 09:23:18 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-27 09:23:18 +0000 |
commit | 4176b6fdd30011a1b86fd14a2211b6e8a15d6140 (patch) | |
tree | 8eae5a3183396087f28700ab643b0fda780dce2a /target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch | |
parent | c4413b6e080904c76cea4ee1fe551cc5406407ca (diff) | |
download | mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.zip mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.tar.gz mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.tar.bz2 |
strict_strtoul is obsolete, use kstrtoul instead
based on http://patchwork.openwrt.org/patch/3827/
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37562
Diffstat (limited to 'target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch')
-rw-r--r-- | target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch b/target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch index d4201eb..92815d9 100644 --- a/target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch +++ b/target/linux/generic/patches-3.3/864-gpiommc_configfs_locking.patch @@ -37,7 +37,7 @@ does not lock access between files. + mutex_lock(&dev->mutex); + if (attr == &gpiommc_attr_register) { - err = strict_strtoul(page, 10, &data); + err = kstrtoul(page, 10, &data); if (err) @@ -478,6 +486,8 @@ static ssize_t gpiommc_config_attr_store WARN_ON(1); |