X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=fs%2Fncpfs%2Ffile.c;h=1daabb90e0a54bba1a3c65146fb7098b3fdb8218;hb=5a0e3ad6af8660be21ca98a971cd00f331318c05;hp=2b145de45b39147ce8e4ab9a53fd709c614050de;hpb=49c13b51a15f1ba9f6d47e26e4a3886c4f3931e2;p=karo-tx-linux.git diff --git a/fs/ncpfs/file.c b/fs/ncpfs/file.c index 2b145de45b39..1daabb90e0a5 100644 --- a/fs/ncpfs/file.c +++ b/fs/ncpfs/file.c @@ -15,9 +15,9 @@ #include #include #include -#include #include #include +#include #include #include "ncplib_kernel.h" @@ -281,9 +281,18 @@ static int ncp_release(struct inode *inode, struct file *file) { return 0; } +static loff_t ncp_remote_llseek(struct file *file, loff_t offset, int origin) +{ + loff_t ret; + lock_kernel(); + ret = generic_file_llseek_unlocked(file, offset, origin); + unlock_kernel(); + return ret; +} + const struct file_operations ncp_file_operations = { - .llseek = remote_llseek, + .llseek = ncp_remote_llseek, .read = ncp_file_read, .write = ncp_file_write, .ioctl = ncp_ioctl,