diff options
author | Richard Weinberger <richard@nod.at> | 2012-04-13 15:54:01 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-05-21 21:09:33 +0200 |
commit | 62179d47c2b1495bedc942b424e933a4b0f2ed51 (patch) | |
tree | 30ffb5b949b4728b29a4b95e0d31d007f066b402 /arch/um/kernel | |
parent | 54ce9256ad705ae8b628edfadce161aa7099922d (diff) |
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/um/kernel')
-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 7f3d4d86431..f819af951c1 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; } } |