diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/9p/client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index c155cc45eff9..e50ec802937a 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
@@ -1168,6 +1168,12 @@ int p9_client_clunk(struct p9_fid *fid) | |||
1168 | struct p9_client *clnt; | 1168 | struct p9_client *clnt; |
1169 | struct p9_req_t *req; | 1169 | struct p9_req_t *req; |
1170 | 1170 | ||
1171 | if (!fid) { | ||
1172 | P9_EPRINTK(KERN_WARNING, "Trying to clunk with NULL fid\n"); | ||
1173 | dump_stack(); | ||
1174 | return 0; | ||
1175 | } | ||
1176 | |||
1171 | P9_DPRINTK(P9_DEBUG_9P, ">>> TCLUNK fid %d\n", fid->fid); | 1177 | P9_DPRINTK(P9_DEBUG_9P, ">>> TCLUNK fid %d\n", fid->fid); |
1172 | err = 0; | 1178 | err = 0; |
1173 | clnt = fid->clnt; | 1179 | clnt = fid->clnt; |