mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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>
This commit is contained in:
parent
8d40fa2492
commit
8e44a0805f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user