diff options
-rw-r--r-- | fs/9p/trans_fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/trans_fd.c b/fs/9p/trans_fd.c index 63b58ce98ff4..b7ffb9859588 100644 --- a/fs/9p/trans_fd.c +++ b/fs/9p/trans_fd.c | |||
@@ -148,12 +148,12 @@ static void v9fs_fd_close(struct v9fs_transport *trans) | |||
148 | if (!trans) | 148 | if (!trans) |
149 | return; | 149 | return; |
150 | 150 | ||
151 | trans->status = Disconnected; | 151 | ts = xchg(&trans->priv, NULL); |
152 | ts = trans->priv; | ||
153 | 152 | ||
154 | if (!ts) | 153 | if (!ts) |
155 | return; | 154 | return; |
156 | 155 | ||
156 | trans->status = Disconnected; | ||
157 | if (ts->in_file) | 157 | if (ts->in_file) |
158 | fput(ts->in_file); | 158 | fput(ts->in_file); |
159 | 159 | ||