Made another vfs_read fix, hopefully this issue is gone now

master
gordboy 2017-11-13 22:48:57 +00:00 committed by Harald Wolff
parent 92b91ec863
commit ef9dff43b2
1 changed files with 4 additions and 0 deletions

View File

@ -4724,7 +4724,11 @@ int rtw_dev_nlo_info_set(struct pno_nlo_info *nlo_info, pno_ssid_t *ssid,
source = rtw_zmalloc(2048);
if (source != NULL) {
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
len = kernel_read(fp, source, len, &pos);
#else
len = vfs_read(fp, source, len, &pos);
#endif
rtw_parse_cipher_list(nlo_info, source);
rtw_mfree(source, 2048);
}