Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b5306b3 authored by Al Viro's avatar Al Viro
Browse files

brcm80211: pointless current->files passed to filp_close()



... only needed if it's been in descriptor table

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 58609306
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);