Re: Serious locking bug in Linux NFS

Matthias Urlichs (smurf@noris.de)
22 Nov 1998 12:10:44 +0100


Riley Williams <rhw@bigfoot.com> writes:
>
> In that case, the following ought to work...
>
> >> if (lp->addr.s_addr != sin->sin_addr.s_addr)
> >> dprintf(L_WARNING, "address mismatch: "
> >> "expected %s, got %s\n",
> >> strdup(inet_ntoa(lp->addr)),
> >> inet_ntoa(sin->sin_addr));
>
> ...but it'll probably leak memory...
>
... besides, you do NOT know which call is executed first.

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661
The quote was selected randomly. Really.    |      http://www.noris.de/~smurf/
-- 
Against logic there is no armor like ignorance.

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