lkml.org 
[lkml]   [2014]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] avr32: replace simple_strtoul() with kstrtoul()
From
> - val = simple_strtoul(buf, &endp, 0);
> - if (endp == buf || val > 0x3f)
> - return -EINVAL;
> + ret = kstrtoul(buf, 0, &val);
> + if (ret)
> + return ret;
> val = (val << 12) | (sysreg_read(PCCR) & 0xfffc0fff);

you removed 0x3f check

this conversion is not trivial as it seems


\
 
 \ /
  Last update: 2014-03-19 12:01    [W:0.034 / U:6.516 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site