Subject: port-xen/30027: IOCTL_PRIVCMD_INITDOMAIN_EVTCHN abuses errno
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 04/22/2005 01:56:00
>Number:         30027
>Category:       port-xen
>Synopsis:       IOCTL_PRIVCMD_INITDOMAIN_EVTCHN abuses errno
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-xen-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 22 01:56:00 +0000 2005
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 3.99.3
>Organization:

>Environment:
	
	
System: NetBSD kaeru 3.99.3 NetBSD 3.99.3 (build.kaeru.xen) #72: Thu Apr 21 12:18:08 JST 2005 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru.xen i386
Architecture: i386
Machine: i386
>Description:
	IOCTL_PRIVCMD_INITDOMAIN_EVTCHN abuses errno to return event channel.
>How-To-Repeat:
	code inspection.
>Fix:
	change to return the value via ap->a_data.
	(and renumber the ioctl for backward compatibility?)

>Unformatted: