Re: [PATCH] waitid system call

From: Linus Torvalds
Date: Tue Aug 31 2004 - 13:28:13 EST




On Tue, 31 Aug 2004, Jakub Jelinek wrote:
>
> Is it really necessary to check the exit code after each put_user?

More importantly, is there really any reason to care at all?

There's no real reason to generate extra code to check an error value that
is pointless. It should probably just use

(void) clear_user(infop, sizeof(*infop))

and be done with it.

Linus
-
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/