From patchwork Tue May 28 11:28:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Coelho X-Patchwork-Id: 13676489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6F22C25B78 for ; Tue, 28 May 2024 11:29:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F43610FE51; Tue, 28 May 2024 11:29:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="FbPWpE0/"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id EAB6710FE51 for ; Tue, 28 May 2024 11:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716895752; x=1748431752; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vJj9k/sjgT/YYunxs4BurZDi/hoNKUkFuaNTLWWbRHI=; b=FbPWpE0/CKGupkkAL771xSEHCA6BEzjjalgsWPZGJ63tolp1DkL2ckOa U/iI+KYSvGGlwCvGiQ0WWXj4H6kNSCiSNbJwne/rFAv3A4aUS2bNCb4OB PPp3XWu2WgzTJPi730LyWbe3TwTyPSgiQl7S8SwckINAqvaMGocmrUsgV 5q++jYAkSi29JzgLp5GZ05qBcV+O2yZXGAY2R0NGxQkyAPjvesU+RHms/ werdMB3kQdOsQXAttoRueCTRiD+UGuVUDw/C1r1VPWtBp23whuexha54S 6s7F0LgJvWnEgd6UbMahgV2Lj5XpmImnTY8UWvTseo8jOPpTXoq7kOw7W Q==; X-CSE-ConnectionGUID: c1BghbpxRTqH5UEVayVYXA== X-CSE-MsgGUID: bRkz3gKZQ1yj8vLApZS6Lw== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13078567" X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="13078567" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 04:29:11 -0700 X-CSE-ConnectionGUID: jltcxcmSTwKDj3+weNbC8g== X-CSE-MsgGUID: 6/cONkCxTp2RpM10k2P1Ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="34962271" Received: from dgoldx-mobl1.ger.corp.intel.com (HELO hazy.ger.corp.intel.com) ([10.249.36.167]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 04:29:10 -0700 From: Luca Coelho To: intel-gfx@lists.freedesktop.org Cc: ville.syrjala@intel.com Subject: [PATCH 0/2] drm/i915: prevent some static analyzer warnings Date: Tue, 28 May 2024 14:28:59 +0300 Message-Id: <20240528112901.476068-1-luciano.coelho@intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, Here's a couple of patches to prevent some static analyzer warnings. They are not really an issue as is, but with these two patches the code will be cleaner and a bit safer, while at the same time silencing these warnings. Plese review. Cheers, Luca. Luca Coelho (2): drm/i915/bios: double check array-boundary in parse_sdvo_lvds_data drm/i915: move uapi.event outside spinlock in intel_crtc_vblank_work drivers/gpu/drm/i915/display/intel_bios.c | 12 ++++++++++++ drivers/gpu/drm/i915/display/intel_crtc.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)