staging: lustre: ldlm: ldlm_resource.c - fix dereferenceing user space buffer
authorAnil Belur <askb23@gmail.com>
Thu, 31 Jul 2014 06:07:05 +0000 (11:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 21:40:30 +0000 (14:40 -0700)
commitf1555465d3f7c0cb98343282d51d216c90cb8e2c
tree572dcaf449be8019b1821e1eebd1f9578ebe1533
parent80039faa8809461f8e23892e14277f9f0af45505
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>
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c