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: Anil Belur <askb23@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
80039faa88
commit
f1555465d3
1 changed files with 3 additions and 2 deletions
|
@ -189,8 +189,9 @@ static int lprocfs_lru_size_seq_show(struct seq_file *m, void *v)
|
||||||
return lprocfs_rd_uint(m, nr);
|
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,
|
||||||
size_t count, loff_t *off)
|
const char __user *buffer,
|
||||||
|
size_t count, loff_t *off)
|
||||||
{
|
{
|
||||||
struct ldlm_namespace *ns = ((struct seq_file *)file->private_data)->private;
|
struct ldlm_namespace *ns = ((struct seq_file *)file->private_data)->private;
|
||||||
char dummy[MAX_STRING_SIZE + 1];
|
char dummy[MAX_STRING_SIZE + 1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue