K 10 svn:author V 2 ed K 8 svn:date V 27 2011-09-12T10:07:21.330147Z K 7 svn:log V 429 Fix error return codes for ioctls on init/lock state devices. In revision 223722 we introduced support for driver ioctls on init/lock state devices. Unfortunately the call to ttydevsw_cioctl() clobbers the value of the error variable, meaning that in many cases ioctl() will now return ENOTTY, even though the ioctl() was processed properly. Reported by: Boris Samorodov Patch by: jilles@ Approved by: re@ (kib@) END