Re: [PATCH correction] Re: 2.4.0test - uid_hash_find()

From: Guest section DW (dwguest@win.tue.nl)
Date: Sun Oct 08 2000 - 19:38:39 EST


On Mon, Oct 09, 2000 at 01:45:46AM -0200, Dan Aloni wrote:
>
> I noticed I forgot a ; somewhere there. Here's the right patch:
>
> --- linux-2.4.0-test9/kernel/user.c Mon Oct 9 01:37:35 2000
> +++ linux.vanilla/kernel/user.c Sun Oct 8 22:33:55 2000
> @@ -51,22 +51,18 @@
> *up->pprev = up->next;
> }
>
> -static inline struct user_struct *uid_hash_find(uid_t uid, unsigned int hashent)
> +static inline struct user_struct *uid_hash_find(unsigned short uid, unsigned int hashent)
> {
> - struct user_struct *up, *next;
> + struct user_struct *up;
>
> - next = uidhash[hashent];
> - for (;;) {
...
> + for (up = uidhash[hashent]; up ; up = up->next)

Your labeling is confusing. linux.vanilla? linux-2.4.0-test9?
Which is the original version?
The --- is most recent.

It looks like you did s/unsigned short/uid_t/ in the
original tree instead of the patched one.

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



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:11 EST