]>
Commit | Line | Data |
---|---|---|
c504579c JR |
1 | --- a/src/shared/linux_osl.c |
2 | +++ b/src/shared/linux_osl.c | |
3 | @@ -1080,7 +1080,11 @@ osl_os_get_image_block(char *buf, int le | |
4 | if (!image) | |
5 | return 0; | |
6 | ||
7 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) | |
8 | + rdlen = kernel_read(fp, buf, len, &fp->f_pos); | |
9 | +#else | |
10 | rdlen = kernel_read(fp, fp->f_pos, buf, len); | |
11 | +#endif | |
12 | if (rdlen > 0) | |
13 | fp->f_pos += rdlen; | |
14 |