diff options
-rw-r--r-- | sound/drivers/dummy.c | 2 | ||||
-rw-r--r-- | sound/pci/hda/hda_hwdep.c | 6 | ||||
-rw-r--r-- | sound/soc/codecs/wm8962.c | 2 | ||||
-rw-r--r-- | sound/soc/omap/mcbsp.c | 2 | ||||
-rw-r--r-- | sound/soc/soc-core.c | 8 |
5 files changed, 11 insertions, 9 deletions
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 11048cc744d0..915b4d7fbb23 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -1022,7 +1022,7 @@ static void dummy_proc_write(struct snd_info_entry *entry, | |||
1022 | if (i >= ARRAY_SIZE(fields)) | 1022 | if (i >= ARRAY_SIZE(fields)) |
1023 | continue; | 1023 | continue; |
1024 | snd_info_get_str(item, ptr, sizeof(item)); | 1024 | snd_info_get_str(item, ptr, sizeof(item)); |
1025 | if (strict_strtoull(item, 0, &val)) | 1025 | if (kstrtoull(item, 0, &val)) |
1026 | continue; | 1026 | continue; |
1027 | if (fields[i].size == sizeof(int)) | 1027 | if (fields[i].size == sizeof(int)) |
1028 | *get_dummy_int_ptr(dummy, fields[i].offset) = val; | 1028 | *get_dummy_int_ptr(dummy, fields[i].offset) = val; |
diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c index ce67608734b5..fe0bda19de15 100644 --- a/sound/pci/hda/hda_hwdep.c +++ b/sound/pci/hda/hda_hwdep.c | |||
@@ -295,7 +295,7 @@ static ssize_t type##_store(struct device *dev, \ | |||
295 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); \ | 295 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); \ |
296 | struct hda_codec *codec = hwdep->private_data; \ | 296 | struct hda_codec *codec = hwdep->private_data; \ |
297 | unsigned long val; \ | 297 | unsigned long val; \ |
298 | int err = strict_strtoul(buf, 0, &val); \ | 298 | int err = kstrtoul(buf, 0, &val); \ |
299 | if (err < 0) \ | 299 | if (err < 0) \ |
300 | return err; \ | 300 | return err; \ |
301 | codec->type = val; \ | 301 | codec->type = val; \ |
@@ -654,7 +654,7 @@ int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) | |||
654 | p = snd_hda_get_hint(codec, key); | 654 | p = snd_hda_get_hint(codec, key); |
655 | if (!p) | 655 | if (!p) |
656 | ret = -ENOENT; | 656 | ret = -ENOENT; |
657 | else if (strict_strtoul(p, 0, &val)) | 657 | else if (kstrtoul(p, 0, &val)) |
658 | ret = -EINVAL; | 658 | ret = -EINVAL; |
659 | else { | 659 | else { |
660 | *valp = val; | 660 | *valp = val; |
@@ -751,7 +751,7 @@ static void parse_##name##_mode(char *buf, struct hda_bus *bus, \ | |||
751 | struct hda_codec **codecp) \ | 751 | struct hda_codec **codecp) \ |
752 | { \ | 752 | { \ |
753 | unsigned long val; \ | 753 | unsigned long val; \ |
754 | if (!strict_strtoul(buf, 0, &val)) \ | 754 | if (!kstrtoul(buf, 0, &val)) \ |
755 | (*codecp)->name = val; \ | 755 | (*codecp)->name = val; \ |
756 | } | 756 | } |
757 | 757 | ||
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index e2de9ecfd641..e37c06f8397c 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3175,7 +3175,7 @@ static ssize_t wm8962_beep_set(struct device *dev, | |||
3175 | long int time; | 3175 | long int time; |
3176 | int ret; | 3176 | int ret; |
3177 | 3177 | ||
3178 | ret = strict_strtol(buf, 10, &time); | 3178 | ret = kstrtol(buf, 10, &time); |
3179 | if (ret != 0) | 3179 | if (ret != 0) |
3180 | return ret; | 3180 | return ret; |
3181 | 3181 | ||
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c index eb68c7db1cf3..e4980c5d7609 100644 --- a/sound/soc/omap/mcbsp.c +++ b/sound/soc/omap/mcbsp.c | |||
@@ -781,7 +781,7 @@ static ssize_t prop##_store(struct device *dev, \ | |||
781 | unsigned long val; \ | 781 | unsigned long val; \ |
782 | int status; \ | 782 | int status; \ |
783 | \ | 783 | \ |
784 | status = strict_strtoul(buf, 0, &val); \ | 784 | status = kstrtoul(buf, 0, &val); \ |
785 | if (status) \ | 785 | if (status) \ |
786 | return status; \ | 786 | return status; \ |
787 | \ | 787 | \ |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 0ec070cf7231..88daa649fc06 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -192,7 +192,7 @@ static ssize_t pmdown_time_set(struct device *dev, | |||
192 | struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); | 192 | struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); |
193 | int ret; | 193 | int ret; |
194 | 194 | ||
195 | ret = strict_strtol(buf, 10, &rtd->pmdown_time); | 195 | ret = kstrtol(buf, 10, &rtd->pmdown_time); |
196 | if (ret) | 196 | if (ret) |
197 | return ret; | 197 | return ret; |
198 | 198 | ||
@@ -237,6 +237,7 @@ static ssize_t codec_reg_write_file(struct file *file, | |||
237 | char *start = buf; | 237 | char *start = buf; |
238 | unsigned long reg, value; | 238 | unsigned long reg, value; |
239 | struct snd_soc_codec *codec = file->private_data; | 239 | struct snd_soc_codec *codec = file->private_data; |
240 | int ret; | ||
240 | 241 | ||
241 | buf_size = min(count, (sizeof(buf)-1)); | 242 | buf_size = min(count, (sizeof(buf)-1)); |
242 | if (copy_from_user(buf, user_buf, buf_size)) | 243 | if (copy_from_user(buf, user_buf, buf_size)) |
@@ -248,8 +249,9 @@ static ssize_t codec_reg_write_file(struct file *file, | |||
248 | reg = simple_strtoul(start, &start, 16); | 249 | reg = simple_strtoul(start, &start, 16); |
249 | while (*start == ' ') | 250 | while (*start == ' ') |
250 | start++; | 251 | start++; |
251 | if (strict_strtoul(start, 16, &value)) | 252 | ret = kstrtoul(start, 16, &value); |
252 | return -EINVAL; | 253 | if (ret) |
254 | return ret; | ||
253 | 255 | ||
254 | /* Userspace has been fiddling around behind the kernel's back */ | 256 | /* Userspace has been fiddling around behind the kernel's back */ |
255 | add_taint(TAINT_USER, LOCKDEP_NOW_UNRELIABLE); | 257 | add_taint(TAINT_USER, LOCKDEP_NOW_UNRELIABLE); |