ret = PTR_ERR(fp);
else {
oldfs = get_fs();
- set_fs(get_ds());
+ set_fs(KERNEL_DS);
if (1 != readFile(fp, &buf, 1))
ret = PTR_ERR(fp);
RTW_INFO("%s openFile path:%s fp=%p\n", __FUNCTION__, path , fp);
oldfs = get_fs();
- set_fs(get_ds());
+ set_fs(KERNEL_DS);
ret = readFile(fp, buf, sz);
set_fs(oldfs);
closeFile(fp);
RTW_INFO("%s openFile path:%s fp=%p\n", __FUNCTION__, path , fp);
oldfs = get_fs();
- set_fs(get_ds());
+ set_fs(KERNEL_DS);
ret = writeFile(fp, buf, sz);
set_fs(oldfs);
closeFile(fp);