]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
tools/testing/selftests/vm/gup_benchmark.c: fix 'write' flag usage
authorKeith Busch <keith.busch@intel.com>
Fri, 26 Oct 2018 22:09:59 +0000 (15:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Oct 2018 23:38:15 +0000 (16:38 -0700)
If the '-w' parameter was provided, the benchmark would exit due to a
mssing 'break'.

Link: http://lkml.kernel.org/r/20181010195605.10689-3-keith.busch@intel.com
Signed-off-by: Keith Busch <keith.busch@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/gup_benchmark.c

index c2f785ded9b9438ca016e9bd94022d43c1f5eab9..b2082df8beb44d70f7a2ecbd9a9516ae76b40917 100644 (file)
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
                        break;
                case 'w':
                        write = 1;
+                       break;
                default:
                        return -1;
                }