From owner-svn-src-all@FreeBSD.ORG Thu Feb 16 22:33:54 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D26B106564A; Thu, 16 Feb 2012 22:33:54 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1CE1C8FC1F; Thu, 16 Feb 2012 22:33:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1GMXsQX037525; Thu, 16 Feb 2012 22:33:54 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1GMXrbl037523; Thu, 16 Feb 2012 22:33:54 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201202162233.q1GMXrbl037523@svn.freebsd.org> From: Jung-uk Kim Date: Thu, 16 Feb 2012 22:33:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231841 - head/sys/dev/fb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 22:33:54 -0000 Author: jkim Date: Thu Feb 16 22:33:53 2012 New Revision: 231841 URL: http://svn.freebsd.org/changeset/base/231841 Log: Properly check VESA video mode number. Modified: head/sys/dev/fb/vesa.h Modified: head/sys/dev/fb/vesa.h ============================================================================== --- head/sys/dev/fb/vesa.h Thu Feb 16 22:28:17 2012 (r231840) +++ head/sys/dev/fb/vesa.h Thu Feb 16 22:33:53 2012 (r231841) @@ -126,7 +126,7 @@ struct vesa_mode #ifdef _KERNEL -#define VESA_MODE(x) ((x) >= M_VESA_BASE) +#define VESA_MODE(x) ((x) >= M_VESA_BASE && (x) <= M_VESA_MODE_MAX) int vesa_load_ioctl(void); int vesa_unload_ioctl(void);