diff options
Diffstat (limited to 'util/cbmem')
-rw-r--r-- | util/cbmem/cbmem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 3435c4c667..8ab80b0a59 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -1327,6 +1327,11 @@ int main(int argc, char** argv) } } + if (optind < argc) { + fprintf(stderr, "Error: Extra parameter found.\n"); + print_usage(argv[0], 1); + } + mem_fd = open("/dev/mem", O_RDONLY, 0); if (mem_fd < 0) { fprintf(stderr, "Failed to gain memory access: %s\n", |