]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: ptlrpc: lproc_ptlrpc.c - fix dereferenceing user space buffer
authorAnil Belur <askb23@gmail.com>
Thu, 31 Jul 2014 07:51:02 +0000 (13:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 21:42:51 +0000 (14:42 -0700)
commita359770c8be98b1e019c09a57ee9e8d8b6d0cafd
tree48729108cbf34b864f86ea9e82d90ed8a658003e
parent3ed0b6358fbef1d5b98a47ddf7f2871bde869801
staging: lustre: ptlrpc: lproc_ptlrpc.c - fix dereferenceing user space buffer

- this fixes sparse warning for directly deferencing user space buffer

drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c:652:33: warning: incorrect type in argument 2 (different address spaces)
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c:652:33:    expected void const [noderef] <asn:1>*from
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c:652:33:    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/ptlrpc/lproc_ptlrpc.c