Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0889a944 authored by Steve French's avatar Steve French
Browse files

CIFS: Use SEEK_END instead of hardcoded value

parent 3eeab61a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -508,7 +508,7 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf,
static loff_t cifs_llseek(struct file *file, loff_t offset, int origin)
{
	/* origin == SEEK_END => we must revalidate the cached file length */
	if (origin == 2) {
	if (origin == SEEK_END) {
		int retval = cifs_revalidate(file->f_dentry);
		if (retval < 0)
			return (loff_t)retval;