Skip to content

Commit

Permalink
brcm80211: pointless current->files passed to filp_close()
Browse files Browse the repository at this point in the history
... only needed if it's been in descriptor table

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 29, 2012
1 parent 5860930 commit 0b5306b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size)
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);

Expand Down

0 comments on commit 0b5306b

Please sign in to comment.