[Top] [All Lists]

Re: sys32_execve fix

To: Carsten Langgaard <>
Subject: Re: sys32_execve fix
From: "Maciej W. Rozycki" <>
Date: Mon, 22 Jul 2002 18:56:42 +0200 (MET DST)
Cc: Ralf Baechle <>,
In-reply-to: <>
Organization: Technical University of Gdansk
Reply-to: "Maciej W. Rozycki" <>
On Mon, 22 Jul 2002, Carsten Langgaard wrote:

> The problem is that "nargs" in arch/mips64/kernel/linux32.c fails when
> argv is NULL, the patch below should fix the problem:

 How about just:

        if (!arg)
                return 0;

at the top?  Gcc should optimize it to a single branch, likely not taken,
and a register move.

+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail:, PGP key available        +

<Prev in Thread] Current Thread [Next in Thread>