2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 00:34:10 +08:00

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

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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2012-07-22 21:15:37 +04:00
parent 586093064d
commit 0b5306b329

View 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);