From owner-cvs-all@FreeBSD.ORG Wed Apr 13 13:56:17 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8D9816A4CE; Wed, 13 Apr 2005 13:56:17 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE5543D60; Wed, 13 Apr 2005 13:56:17 +0000 (GMT) (envelope-from avatar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3DDuHVs053369; Wed, 13 Apr 2005 13:56:17 GMT (envelope-from avatar@repoman.freebsd.org) Received: (from avatar@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3DDuHdC053368; Wed, 13 Apr 2005 13:56:17 GMT (envelope-from avatar) Message-Id: <200504131356.j3DDuHdC053368@repoman.freebsd.org> From: Tai-hwa Liang Date: Wed, 13 Apr 2005 13:56:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern tty.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2005 13:56:18 -0000 avatar 2005-04-13 13:56:17 UTC FreeBSD src repository Modified files: sys/kern tty.c Log: According to the comment in struct tty, t_modem is optional; hence we should guard against NULL t_modem entry. Otherwise, driver doesn't have t_modem callback implemented(such like sys/dev/usb/ucycom.c) would panic when someone opens the driver's associated tty device. Reviewed by: phk, sam (mentor) Revision Changes Path 1.249 +4 -2 src/sys/kern/tty.c