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 8933f9b31a9a64a7c2c3f5428aba47a4e85d88d5..ae00e800f5e8293930d2bdf6ed984fde3e319ceb 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);