From: Dominique Martinet Date: Fri, 9 Jan 2015 12:05:56 +0000 (+0100) Subject: net/9p: Initialize opts->privport as it should be. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b99baa43e533eb62a947e623d0ef844cfbf28d8e;p=deliverable%2Flinux.git net/9p: Initialize opts->privport as it should be. We're currently using an uninitialized value if option privport is not set, thus (almost) always using a privileged port. Signed-off-by: Dominique Martinet Signed-off-by: Eric Van Hensbergen --- diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index c73b894846c1..154479d2756d 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -734,6 +734,7 @@ static int parse_opts(char *params, struct p9_fd_opts *opts) opts->port = P9_PORT; opts->rfd = ~0; opts->wfd = ~0; + opts->privport = 0; if (!params) return 0;