summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_uac1.c
diff options
context:
space:
mode:
authorAl Viro2012-07-22 19:23:33 +0200
committerAl Viro2012-07-29 19:24:21 +0200
commit20818a0caa84adbfe2f1e9c0e036f5b09a9692a2 (patch)
tree1e5281da3ca21fa0d7fdccd1d6e93277bdff5ba1 /drivers/usb/gadget/u_uac1.c
parentslightly reduce lossage in gdm72xx (diff)
downloadkernel-qcow2-linux-20818a0caa84adbfe2f1e9c0e036f5b09a9692a2.tar.gz
kernel-qcow2-linux-20818a0caa84adbfe2f1e9c0e036f5b09a9692a2.tar.xz
kernel-qcow2-linux-20818a0caa84adbfe2f1e9c0e036f5b09a9692a2.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/u_uac1.c b/drivers/usb/gadget/u_uac1.c
index af9898982059..e0c5e88e03ed 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;
}