summaryrefslogtreecommitdiffstats
path: root/net/appletalk/ddp.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-09-28 22:25:29 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-09-28 22:25:29 +0000
commit0ae8dceaebe3659ee0c3352c08125f403e77ebca (patch)
tree5085c389f09da78182b899d19fe1068b619a69dd /net/appletalk/ddp.c
parent273767781288c35c9d679e908672b9996cda4c34 (diff)
Merge with 2.3.10.
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r--net/appletalk/ddp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 4c8c6e390..b9ef2efd5 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -894,7 +894,7 @@ int atif_ioctl(int cmd, void *arg)
else
{
limit = ntohs(nr->nr_lastnet);
- if(limit - ntohs(nr->nr_firstnet) > 256)
+ if(limit - ntohs(nr->nr_firstnet) > 4096)
{
printk(KERN_WARNING "Too many routes/iface.\n");
return (-EINVAL);
@@ -938,6 +938,8 @@ int atif_ioctl(int cmd, void *arg)
return (-EPERM);
if(sa->sat_family != AF_APPLETALK)
return (-EINVAL);
+ if (atif == NULL)
+ return (-EADDRNOTAVAIL);
/*
* for now, we only support proxy AARP on ELAP;
@@ -987,6 +989,8 @@ int atif_ioctl(int cmd, void *arg)
return (-EPERM);
if(sa->sat_family != AF_APPLETALK)
return (-EINVAL);
+ if (atif == NULL)
+ return (-EADDRNOTAVAIL);
/*
* give to aarp module to remove proxy entry