Skip to content

Commit

Permalink
um: Add BUG() to do_ops()'s error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Weinberger committed May 21, 2012
1 parent 54ce925 commit 62179d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/um/kernel/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 62179d4

Please sign in to comment.