Merge pull request #810 from CGarces/fix_kernel_5.10_patch

Fix memory leak
This commit is contained in:
Christian Bremvåg 2021-01-11 11:31:47 +01:00 committed by GitHub
commit 64e7aaa565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4795,8 +4795,8 @@ int rtw_dev_nlo_info_set(struct pno_nlo_info *nlo_info, pno_ssid_t *ssid,
}
#ifdef set_fs
set_fs(fs);
filp_close(fp, NULL);
#endif
filp_close(fp, NULL);
RTW_INFO("-%s-\n", __func__);
return 0;
}