From 62179d47c2b1495bedc942b424e933a4b0f2ed51 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Fri, 13 Apr 2012 15:54:01 +0200 Subject: 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 --- arch/um/kernel/tlb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/um/kernel') 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; } } -- cgit v1.2.3