|
@@ -2173,9 +2173,15 @@ void udp4_proc_exit(void)
|
|
|
static __initdata unsigned long uhash_entries;
|
|
|
static int __init set_uhash_entries(char *str)
|
|
|
{
|
|
|
+ ssize_t ret;
|
|
|
+
|
|
|
if (!str)
|
|
|
return 0;
|
|
|
- uhash_entries = simple_strtoul(str, &str, 0);
|
|
|
+
|
|
|
+ ret = kstrtoul(str, 0, &uhash_entries);
|
|
|
+ if (ret)
|
|
|
+ return 0;
|
|
|
+
|
|
|
if (uhash_entries && uhash_entries < UDP_HTABLE_SIZE_MIN)
|
|
|
uhash_entries = UDP_HTABLE_SIZE_MIN;
|
|
|
return 1;
|