Re: [PATCH] lib/kstrtox.c break if overflow is detected

2015-01-22 Thread Anshul Garg
Dear Mr. Levente , Thanks for the reply. I will segregate this patch in two different patches. I will send these patches again. Thanks Anshul Garg On Thu, Jan 22, 2015 at 1:09 AM, Levente Kurusa wrote: > Hi, > > On Wed, Jan 21, 2015 at 11:26:26AM -0800, Anshul Garg wrote: >> From: Anshul

Re: [PATCH] lib/kstrtox.c break if overflow is detected

2015-01-21 Thread Levente Kurusa
Hi, On Wed, Jan 21, 2015 at 11:26:26AM -0800, Anshul Garg wrote: > From: Anshul Garg > > 1. While converting string representation to integer > break the loop if overflow is detected. > 2. Clean kstrtoll function > > Signed-off-by: Anshul Garg > --- > lib/kstrtox.c | 28 +---

[PATCH] lib/kstrtox.c break if overflow is detected

2015-01-21 Thread Anshul Garg
From: Anshul Garg 1. While converting string representation to integer break the loop if overflow is detected. 2. Clean kstrtoll function Signed-off-by: Anshul Garg --- lib/kstrtox.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/lib/kstrto