diff options
author | Richard Weinberger <richard@nod.at> | 2012-04-13 17:54:01 +0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-05-21 23:09:33 +0400 |
commit | 62179d47c2b1495bedc942b424e933a4b0f2ed51 (patch) | |
tree | 30ffb5b949b4728b29a4b95e0d31d007f066b402 /arch | |
parent | 54ce9256ad705ae8b628edfadce161aa7099922d (diff) | |
download | linux-62179d47c2b1495bedc942b424e933a4b0f2ed51.tar.xz |
um: Add BUG() to do_ops()'s error path
In case we encounter a bad operation in do_ops() something is really
broken and it's better to BUG().
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/tlb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c index 7f3d4d86431a..f819af951c19 100644 --- a/arch/um/kernel/tlb.c +++ b/arch/um/kernel/tlb.c @@ -75,6 +75,7 @@ static int do_ops(struct host_vm_change *hvc, int end, default: printk(KERN_ERR "Unknown op type %d in do_ops\n", op->type); + BUG(); break; } } |