Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dominique Martinet and committed by
Eric Van Hensbergen
b99baa43 179a5bc4

+1
+1
net/9p/trans_fd.c
··· 734 734 opts->port = P9_PORT; 735 735 opts->rfd = ~0; 736 736 opts->wfd = ~0; 737 + opts->privport = 0; 737 738 738 739 if (!params) 739 740 return 0;