Re: [Patch] kernel/sys.c: fix an incorrect error branch inorderly_poweroff()

From: Cyrill Gorcunov
Date: Wed Jul 04 2012 - 02:56:07 EST


On Wed, Jul 04, 2012 at 11:31:47AM +0800, Cong Wang wrote:
> From: WANG Cong <xiyou.wangcong@xxxxxxxxx>
>
> When argv_split() fails, argv is NULL, thus we should avoid calling
> agrv_free(argv), and should jump after it.
>
> Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
> Cc: Kees Cook <keescook@xxxxxxxxxxxx>
> Cc: Serge Hallyn <serge.hallyn@xxxxxxxxxxxxx>
> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>
> ---
Acked-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>

Thanks!
--
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/