提交 0b5306b3 编写于 作者: A Al Viro

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

... only needed if it's been in descriptor table
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 58609306
...@@ -1182,7 +1182,7 @@ int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size) ...@@ -1182,7 +1182,7 @@ int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size)
kfree(buf); kfree(buf);
/* close file before return */ /* close file before return */
if (fp) if (fp)
filp_close(fp, current->files); filp_close(fp, NULL);
/* restore previous address limit */ /* restore previous address limit */
set_fs(old_fs); set_fs(old_fs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册