diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c
index c73b894846c17db57bc1b74440618e06e897cdcc..154479d2756d8d88487c17d3f659871fcb59d828 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;