brcm80211: pointless current->files passed to filp_close()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 17:15:37 +0000 (21:15 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jul 2012 17:24:22 +0000 (21:24 +0400)
... only needed if it's been in descriptor table

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c

index 8933f9b..ae00e80 100644 (file)
@@ -1182,7 +1182,7 @@ exit:
        kfree(buf);
        /* close file before return */
        if (fp)
-               filp_close(fp, current->files);
+               filp_close(fp, NULL);
        /* restore previous address limit */
        set_fs(old_fs);