diff options
author | James Simmons <jsimmons@infradead.org> | 2016-10-02 22:28:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-16 10:24:39 +0200 |
commit | 7d870d93badd7f2bfa8a33674ee3b626159b4e9b (patch) | |
tree | 8f15b604b90010e73c533a2dd38c53920f1a6f84 /block/blk-softirq.c | |
parent | f7d5215d0afefc9c2b1573fe2980d8e3643857ee (diff) | |
download | op-kernel-dev-7d870d93badd7f2bfa8a33674ee3b626159b4e9b.zip op-kernel-dev-7d870d93badd7f2bfa8a33674ee3b626159b4e9b.tar.gz |
staging: lustre: lov: copy_to_user uses wrong casting
With certain version of gcc lov_obd.c failes to compile
with the following warning.
In function copy_to_user,
inlined from lov_iocontrol at
lustre/lustre/lov/lov_obd.c:1168:
./arch/x86/include/asm/uaccess.h:735: error: call to
__copy_to_user_overflow declared with attribute warning:
copy_to_user() buffer size is not probably correct
In lov_iocontrol the data was being casted to int instead
of the required unsigned long. This patch changes the cast
to what is needed for copy_to_user.
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6302
Reviewed-on: http://review.whamcloud.com/14613
Reviewed-by: frank zago <fzago@cray.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-softirq.c')
0 files changed, 0 insertions, 0 deletions