On Friday 22 November 2013 18:38:30 Antonio Quartulli wrote:
The macro previously introduced in the compat code to
replace
kstrtou32() may not work properly in case of a too large
user input.
Fix it by using a temporary variable of the proper length
and then cast the result.
Possibly return -ERANGE is the result is too big to fix a 32bit
long variable.
Cc: Matthias Schiffer <mschiffer(a)universe-factory.net>
Signed-off-by: Antonio Quartulli <antonio(a)meshcoding.com>
---
compat.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
Applied in revision 28dab26.
Thanks,
Marek