projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ce925
)
um: Add BUG() to do_ops()'s error path
author
Richard Weinberger
<richard@nod.at>
Fri, 13 Apr 2012 13:54:01 +0000
(15:54 +0200)
committer
Richard 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/um/kernel/tlb.c
b/arch/um/kernel/tlb.c
index 7f3d4d86431a0801ffbc37fc2273b2f373ed5444..f819af951c19004b61be77050e699ed8897cb45d 100644
(file)
--- 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;
}
}