Re: svn commit: r259221 - head/sys/dev/vt

From: Larry Rosenman <ler_at_lerctr.org>
Date: Wed, 11 Dec 2013 12:41:04 -0600
This looks like it fixes my -CURRENT crash..

Thanks GNN/JHB
On Wed, Dec 11, 2013 at 05:18:10PM +0000, George V. Neville-Neil wrote:
> Author: gnn
> Date: Wed Dec 11 17:18:10 2013
> New Revision: 259221
> URL: http://svnweb.freebsd.org/changeset/base/259221
> 
> Log:
>   Fix a panic when booting with kernels that have FREEBBSD_COMPAT
>   4, 5, 6 or 43 by only thunking the data parameter for old ioctls
>   compatability ioctls instead of doing it for all of them.
>   
>   Submitted by:	jhb_at_
> 
> Modified:
>   head/sys/dev/vt/vt_core.c
> 
> Modified: head/sys/dev/vt/vt_core.c
> ==============================================================================
> --- head/sys/dev/vt/vt_core.c	Wed Dec 11 15:32:28 2013	(r259220)
> +++ head/sys/dev/vt/vt_core.c	Wed Dec 11 17:18:10 2013	(r259221)
> _at__at_ -1321,9 +1321,12 _at__at_ vtterm_ioctl(struct terminal *tm, u_long
>  	case _IO('c', 110):
>  		cmd = CONS_SETKBD;
>  		break;
> +	default:
> +		goto skip_thunk;
>  	}
>  	ival = IOCPARM_IVAL(data);
>  	data = (caddr_t)&ival;
> +skip_thunk:
>  #endif
>  
>  	switch (cmd) {
> _______________________________________________
> svn-src-all_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscribe_at_freebsd.org"

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_lerctr.org
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688
Received on Wed Dec 11 2013 - 17:41:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:45 UTC