diff options
author | jvrao <jvrao@linux.vnet.ibm.com> | 2010-08-25 16:27:06 +0000 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-10-28 09:08:45 -0500 |
commit | 8e44a0805fc9d77475060280136aa491aa7d7060 (patch) | |
tree | 61680d097ea47eddd9fab5e8fbd12626baf25b20 /net/9p | |
parent | 8d40fa2492eb3dcf02468eef2f6bba450be42b22 (diff) | |
download | linux-8e44a0805fc9d77475060280136aa491aa7d7060.tar.gz linux-8e44a0805fc9d77475060280136aa491aa7d7060.tar.bz2 linux-8e44a0805fc9d77475060280136aa491aa7d7060.zip |
net/9p: Add a Warning to catch NULL fids passed to p9_client_clunk().
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p')
-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) struct p9_client *clnt; struct p9_req_t *req; + if (!fid) { + P9_EPRINTK(KERN_WARNING, "Trying to clunk with NULL fid\n"); + dump_stack(); + return 0; + } + P9_DPRINTK(P9_DEBUG_9P, ">>> TCLUNK fid %d\n", fid->fid); err = 0; clnt = fid->clnt; |