From patchwork Sat Dec 25 19:20:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarek Poplawski X-Patchwork-Id: 434891 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBRL0W3Z022251 for ; Mon, 27 Dec 2010 21:00:52 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 61D179E85E for ; Mon, 27 Dec 2010 09:23:26 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 834419E730 for ; Sat, 25 Dec 2010 11:20:15 -0800 (PST) Received: by bwz5 with SMTP id 5so8752917bwz.36 for ; Sat, 25 Dec 2010 11:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=WMIO29atONCpUmOYOt8PvUU494kwHHw7DS83d3yuqLo=; b=QL2eE43JoBxAiAv5S78l2HlzyC/QFZJRGARXyAqIuoqvq4ASuvXZS/2FdxqYu17iV5 24t9z+MyB/130qMAVGJ4PzM4UwZF7g7rdIkdlKA7jVU6PmZZ8vZE4P3AeoYrxDoiMohI IMB06R7sGYTDSP0apJYESU9qet/3duw8zTAIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=SpndtzR2TbbKSE/qqu4vxWUXQ9GaHem8f9tRAKHIMUd64V45J53ic5e1/e9TGp4eyC os8btxC7pLmG7J/ri/ZiY35Ecu8qWVhKzcn1LKcKoWcvODyUcxetPSCCXbOwcfEdrs3M YE0RK99hzM/ki5IJtkMzXRZSCbl3OHiAaoSXk= Received: by 10.204.23.66 with SMTP id q2mr1786127bkb.130.1293304814188; Sat, 25 Dec 2010 11:20:14 -0800 (PST) Received: from del.dom.local (public79653.xdsl.centertel.pl [79.162.183.37]) by mx.google.com with ESMTPS id j11sm6851927bka.12.2010.12.25.11.20.11 (version=SSLv3 cipher=RC4-MD5); Sat, 25 Dec 2010 11:20:12 -0800 (PST) Date: Sat, 25 Dec 2010 20:20:08 +0100 From: Jarek Poplawski To: Chris Wilson Subject: Re: [2.6.37-rc7] drivers/gpu/drm/drm_edid.c:1303: warning: array subscript is above array bounds Message-ID: <20101225192008.GA2325@del.dom.local> References: <20101225131343.GA1960@del.dom.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Mon, 27 Dec 2010 09:20:09 -0800 Cc: Linux Kernel , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 27 Dec 2010 21:00:52 +0000 (UTC) --- drm_edid.c- 2010-12-25 19:24:55.000000000 +0100 +++ drm_edid.c 2010-12-25 19:51:45.000000000 +0100 @@ -1290,7 +1290,7 @@ add_detailed_modes(struct drm_connector */ static u8 *drm_find_cea_extension(struct edid *edid) { - u8 *edid_ext = NULL; + char *edid_ext = NULL; int i; /* No EDID or EDID extensions */ @@ -1299,7 +1299,7 @@ static u8 *drm_find_cea_extension(struct /* Find CEA extension */ for (i = 0; i < edid->extensions; i++) { - edid_ext = (u8 *)edid + EDID_LENGTH * (i + 1); + edid_ext = (char *)edid + EDID_LENGTH * (i + 1); if (edid_ext[0] == CEA_EXT) break; }