summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-03-25 11:05:28 +0000
committerkib <kib@FreeBSD.org>2011-03-25 11:05:28 +0000
commitabbe29dccf0ab2e1c0b6bc90fc0790b7ce0e30f4 (patch)
treea424e1f744b2f229a21929e3847451e69e1c0886 /sys/compat
parent1d38d5630c1cec253fbe382619dfd33928c404c6 (diff)
downloadFreeBSD-src-abbe29dccf0ab2e1c0b6bc90fc0790b7ce0e30f4.zip
FreeBSD-src-abbe29dccf0ab2e1c0b6bc90fc0790b7ce0e30f4.tar.gz
Remove unneccessary panics, that can be easily triggered by user.
The copyin() function handles NULL as well as any other pointer. MFC after: 3 days
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32_ioctl.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/compat/freebsd32/freebsd32_ioctl.c b/sys/compat/freebsd32/freebsd32_ioctl.c
index 04debd8..3fcc418 100644
--- a/sys/compat/freebsd32/freebsd32_ioctl.c
+++ b/sys/compat/freebsd32/freebsd32_ioctl.c
@@ -66,8 +66,6 @@ freebsd32_ioctl_md(struct thread *td, struct freebsd32_ioctl_args *uap,
u_long com = 0;
int error;
- if (uap->data == NULL)
- panic("%s: where is my ioctl data??", __func__);
if (uap->com & IOC_IN) {
if ((error = copyin(uap->data, &md32, sizeof(md32)))) {
return (error);
@@ -132,9 +130,6 @@ freebsd32_ioctl_ioc_toc_header(struct thread *td,
struct ioc_toc_header32 toch32;
int error;
- if (uap->data == NULL)
- panic("%s: where is my ioctl data??", __func__);
-
if ((error = copyin(uap->data, &toch32, sizeof(toch32))))
return (error);
CP(toch32, toch, len);
@@ -154,9 +149,6 @@ freebsd32_ioctl_ioc_read_toc(struct thread *td,
struct ioc_read_toc_entry32 toce32;
int error;
- if (uap->data == NULL)
- panic("%s: where is my ioctl data??", __func__);
-
if ((error = copyin(uap->data, &toce32, sizeof(toce32))))
return (error);
CP(toce32, toce, address_format);
OpenPOWER on IntegriCloud