diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 21:23:33 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-29 21:24:21 +0400 |
commit | 20818a0caa84adbfe2f1e9c0e036f5b09a9692a2 (patch) | |
tree | 1e5281da3ca21fa0d7fdccd1d6e93277bdff5ba1 /drivers/usb/gadget/u_uac1.c | |
parent | 09fada5b5f1f56502bb14f36a69a2c31cea262be (diff) | |
download | op-kernel-dev-20818a0caa84adbfe2f1e9c0e036f5b09a9692a2.zip op-kernel-dev-20818a0caa84adbfe2f1e9c0e036f5b09a9692a2.tar.gz |
gadgetfs: clean up
sigh...
* opened files have non-NULL dentries and non-NULL inodes
* close_filp() needs current->files only if the file had been
in descriptor table.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb/gadget/u_uac1.c')
-rw-r--r-- | drivers/usb/gadget/u_uac1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/u_uac1.c b/drivers/usb/gadget/u_uac1.c index af98989..e0c5e88 100644 --- a/drivers/usb/gadget/u_uac1.c +++ b/drivers/usb/gadget/u_uac1.c @@ -275,17 +275,17 @@ static int gaudio_close_snd_dev(struct gaudio *gau) /* Close control device */ snd = &gau->control; if (snd->filp) - filp_close(snd->filp, current->files); + filp_close(snd->filp, NULL); /* Close PCM playback device and setup substream */ snd = &gau->playback; if (snd->filp) - filp_close(snd->filp, current->files); + filp_close(snd->filp, NULL); /* Close PCM capture device and setup substream */ snd = &gau->capture; if (snd->filp) - filp_close(snd->filp, current->files); + filp_close(snd->filp, NULL); return 0; } |