From: "Randy.Dunlap" <rddunlap@osdl.org>
From: Tony Breeds <tony@bakeyournoodle.com>
It fixes 3 places where the ioctl returns positives instead of negatives.
I've gotten feedback from the maintainer (Rogier Wolff (sp?) and he has no
objections.
else {
rio_dprintk (RIO_DEBUG_CTRL, "p->RIOBindTab full! - Rta %x not added\n",
(int) arg);
- return 1;
+ return -ENOMEM;
}
return 0;
}
case RIO_NO_MESG:
if ( su )
p->RIONoMessage = 1;
- return su ? 0 : EPERM;
+ return su ? 0 : -EPERM;
case RIO_MESG:
if ( su )
p->RIONoMessage = 0;
- return su ? 0 : EPERM;
+ return su ? 0 : -EPERM;
case RIO_WHAT_MESG:
if ( copyout( (caddr_t)&p->RIONoMessage, (int)arg,