git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FRV: BUG to BUG_ON changes
[sfrench/cifs-2.6.git]
/
arch
/
frv
/
kernel
/
uaccess.c
diff --git
a/arch/frv/kernel/uaccess.c
b/arch/frv/kernel/uaccess.c
index 9fb771a20df3cf831f4779aba7859e4c865928de..374f88d6cc00d0c32fffd03f5c7b3a8b1af395ee 100644
(file)
--- a/
arch/frv/kernel/uaccess.c
+++ b/
arch/frv/kernel/uaccess.c
@@
-23,8
+23,7
@@
long strncpy_from_user(char *dst, const char __user *src, long count)
char *p, ch;
long err = -EFAULT;
- if (count < 0)
- BUG();
+ BUG_ON(count < 0);
p = dst;
@@
-76,8
+75,7
@@
long strnlen_user(const char __user *src, long count)
long err = 0;
char ch;
- if (count < 0)
- BUG();
+ BUG_ON(count < 0);
#ifndef CONFIG_MMU
if ((unsigned long) src < memory_start)