Patchwork [v2] net: strict_strtoul is obsolete, use kstrtoul instead

login
register
mail settings
Submitter =?UTF-8?q?=E2=80=9CCosmin?=
Date July 12, 2013, 6:33 a.m.
Message ID <1373610813-11229-1-git-send-email-cosmin90stanescu@gmail.com>
Download mbox | patch
Permalink /patch/258694/
State Accepted
Delegated to: David Miller
Headers show

Comments

=?UTF-8?q?=E2=80=9CCosmin?= - July 12, 2013, 6:33 a.m.
patch found using checkpatch.pl

Signed-off-by: Cosmin Stanescu <cosmin90stanescu@gmail.com>
---
Changes since v1:
	* fixed user-name in commit message
 net/dns_resolver/dns_key.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
David Miller - July 12, 2013, 11:09 p.m.
From: Cosmin Stanescu <cosmin90stanescu@gmail.com>
Date: Fri, 12 Jul 2013 09:33:33 +0300

> patch found using checkpatch.pl
> 
> Signed-off-by: Cosmin Stanescu <cosmin90stanescu@gmail.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/dns_resolver/dns_key.c b/net/dns_resolver/dns_key.c
index 0a69d07..f347a2c 100644
--- a/net/dns_resolver/dns_key.c
+++ b/net/dns_resolver/dns_key.c
@@ -118,7 +118,7 @@  dns_resolver_instantiate(struct key *key, struct key_preparsed_payload *prep)
 				if (opt_vlen <= 0)
 					goto bad_option_value;
 
-				ret = strict_strtoul(eq, 10, &derrno);
+				ret = kstrtoul(eq, 10, &derrno);
 				if (ret < 0)
 					goto bad_option_value;