aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/9p/protocol.c')
-rw-r--r--net/9p/protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c
index 84fa21271876..29be52439086 100644
--- a/net/9p/protocol.c
+++ b/net/9p/protocol.c
@@ -215,9 +215,9 @@ p9pdu_vreadf(struct p9_fcall *pdu, int optional, const char *fmt, va_list ap)
215 struct p9_wstat *stbuf = 215 struct p9_wstat *stbuf =
216 va_arg(ap, struct p9_wstat *); 216 va_arg(ap, struct p9_wstat *);
217 217
218 stbuf->extension = NULL; 218 memset(stbuf, 0, sizeof(struct p9_wstat));
219 stbuf->n_uid = stbuf->n_gid = stbuf->n_muid = 219 stbuf->n_uid = stbuf->n_gid = stbuf->n_muid =
220 -1; 220 -1;
221 errcode = 221 errcode =
222 p9pdu_readf(pdu, optional, 222 p9pdu_readf(pdu, optional,
223 "wwdQdddqssss?sddd", 223 "wwdQdddqssss?sddd",