Re: [PATCH][BUGFIX] param: fix return value handling in param_set_*

From: Rusty Russell
Date: Sun May 29 2011 - 21:36:29 EST


On Thu, 26 May 2011 19:38:04 -0400, Satoru Moriya <satoru.moriya@xxxxxxx> wrote:
> 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 <satoru.moriya@xxxxxxx>

Thanks, applied.

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/