um: Add BUG() to do_ops()'s error path
authorRichard Weinberger <richard@nod.at>
Fri, 13 Apr 2012 13:54:01 +0000 (15:54 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 21 May 2012 19:09:33 +0000 (21:09 +0200)
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>
arch/um/kernel/tlb.c

index 7f3d4d86431a0801ffbc37fc2273b2f373ed5444..f819af951c19004b61be77050e699ed8897cb45d 100644 (file)
@@ -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;
                }
        }