diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-05 15:51:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-05 16:32:04 -0700 |
commit | 51896864579d5a3349740847083f4db5c6487164 (patch) | |
tree | 7db76ed2366fceaa24eb69e4ff38319588f0751a /ipc | |
parent | e125fe405abedc1dc8a5b2229b80ee91c1434015 (diff) | |
download | linux-rpi3-51896864579d5a3349740847083f4db5c6487164.tar.gz linux-rpi3-51896864579d5a3349740847083f4db5c6487164.tar.bz2 linux-rpi3-51896864579d5a3349740847083f4db5c6487164.zip |
mm/gup_benchmark: fix unsigned comparison to zero in __gup_benchmark_ioctl
get_user_pages_fast() will return negative value if no pages were pinned,
then be converted to a unsigned, which is compared to zero, giving the
wrong result.
Link: http://lkml.kernel.org/r/20180921095015.26088-1-yuehaibing@huawei.com
Fixes: 09e35a4a1ca8 ("mm/gup_benchmark: handle gup failures")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions