summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@cea.fr>2015-01-09 13:05:56 +0100
committerEric Van Hensbergen <ericvh@gmail.com>2015-03-21 19:27:22 -0700
commitb99baa43e533eb62a947e623d0ef844cfbf28d8e (patch)
treedb3f95dfdb70cd4b920213948e986a4333cf3876 /net
parent179a5bc4b8cbe68ca675057b960dd805867e41c4 (diff)
downloadlinux-b99baa43e533eb62a947e623d0ef844cfbf28d8e.tar.gz
linux-b99baa43e533eb62a947e623d0ef844cfbf28d8e.tar.bz2
linux-b99baa43e533eb62a947e623d0ef844cfbf28d8e.zip
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 <dominique.martinet@cea.fr> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/9p/trans_fd.c1
1 files changed, 1 insertions, 0 deletions
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;