From: Satoru Moriya Date: Thu, 26 May 2011 23:38:04 +0000 (-0400) Subject: param: fix return value handling in param_set_* X-Git-Tag: v3.1-rc1~263^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81c7413650fbbf881bcb9e567be61a6717eb1876;p=pandora-kernel.git param: fix return value handling in param_set_* In STANDARD_PARAM_DEF, param_set_* handles the case in which strtolfn returns -EINVAL but it may return -ERANGE. If it returns -ERANGE, param_set_* may set uninitialized value to the paramerter. We should handle both cases. The one of the cases in which strtolfn() returns -ERANGE is following: *Type of module parameter is long *Set the parameter more than LONG_MAX Signed-off-by: Satoru Moriya Signed-off-by: Rusty Russell --- Reading git-diff-tree failed