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

Commit f1555465 authored by Anil Belur's avatar Anil Belur Committed by Greg Kroah-Hartman
Browse files

staging: lustre: ldlm: ldlm_resource.c - fix dereferenceing user space buffer



- this fixes sparse warning for directly deferencing user space buffer

./lustre/ldlm/ldlm_resource.c:202:35: warning: incorrect type in argument 2 (different address spaces)
./lustre/ldlm/ldlm_resource.c:202:35:    expected void const [noderef] <asn:1>*from
./lustre/ldlm/ldlm_resource.c:202:35:    got char const *buffer

Signed-off-by: default avatarAnil Belur <askb23@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 80039faa
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -189,7 +189,8 @@ static int lprocfs_lru_size_seq_show(struct seq_file *m, void *v)
	return lprocfs_rd_uint(m, nr);
}

static ssize_t lprocfs_lru_size_seq_write(struct file *file, const char *buffer,
static ssize_t lprocfs_lru_size_seq_write(struct file *file,
					const char __user *buffer,
					size_t count, loff_t *off)
{
	struct ldlm_namespace *ns = ((struct seq_file *)file->private_data)->private;