From: Richard Weinberger Date: Fri, 13 Apr 2012 13:54:01 +0000 (+0200) Subject: um: Add BUG() to do_ops()'s error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62179d47c2b1495bedc942b424e933a4b0f2ed51;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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; } }