diff options
author | Richard Weinberger <richard@nod.at> | 2012-04-13 09:54:01 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-05-21 15:09:33 -0400 |
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 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, | |||
75 | default: | 75 | default: |
76 | printk(KERN_ERR "Unknown op type %d in do_ops\n", | 76 | printk(KERN_ERR "Unknown op type %d in do_ops\n", |
77 | op->type); | 77 | op->type); |
78 | BUG(); | ||
78 | break; | 79 | break; |
79 | } | 80 | } |
80 | } | 81 | } |