diff options
author | Stoyan Gaydarov <stoyboyker@gmail.com> | 2009-06-11 13:05:04 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 09:01:26 -0700 |
commit | db5c444eeb781788a0db36a2682b2417cf71f764 (patch) | |
tree | 4b3399696f7915eeb7ab9f9c125cac8c486a6bf0 /arch/frv/kernel/uaccess.c | |
parent | d2f11bf7fc630e27dfcede367399dddf40521878 (diff) | |
download | linux-db5c444eeb781788a0db36a2682b2417cf71f764.tar.bz2 |
FRV: BUG to BUG_ON changes
Change some BUG()'s to BUG_ON()'s.
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv/kernel/uaccess.c')
-rw-r--r-- | arch/frv/kernel/uaccess.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/frv/kernel/uaccess.c b/arch/frv/kernel/uaccess.c index 9fb771a20df3..374f88d6cc00 100644 --- 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) |