Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1629041pxb; Thu, 28 Oct 2021 07:15:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7xbLmc14Lm3cnyRmIVUgPH9mch8UcXN/A1Vkod/ubxnmI4+9PXgvRzfFSx1zPsO7s0x8x X-Received: by 2002:a05:6402:4250:: with SMTP id g16mr6447949edb.26.1635430535290; Thu, 28 Oct 2021 07:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635430535; cv=none; d=google.com; s=arc-20160816; b=dMrDbA7k6RURZY6x178xdVj83KJgj3obYbay0QbyGAcr5vXtAYQUdvDWfscPFyvhNz i6VCA0hoHm/aKMdqAuFeAp+ryoU7izRZgWS4N9bo/CsdhYq0QunKgHRCeLetPLYYjHAN l0OoxtCklk2uzK4D0RAyIc7shcmjHTU8+ZzStG8yCjpvFmGxe+52FPss1mAA//WGlhfw s7l9omq/yJbq8UbUp7LbrEn+qkrKa2q6iPbZUYNCLtMtAAisBJK/bss9kC7WuvyKo/ee hdMU9luWnRW9GzwFFqcDeNfjwSQLSNQB/oFw9HpNPXy6G+gQp9rIGDpMPH7T4v3BVK9K ErAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=sfjvhnOlQn80OqnZTv0gYWgB7med55eS3xYGH2ls3VE=; b=R/Q/Led+J3kolQtNixTvh6Vgw5x6384kWoJLg1Q9lKQpCWQFfRID5LEtxm69oKP0HC B2JOXpPRJw4mREQZrvnLL3PdIkXH+HJDrcfpP3/Frk3Lrv0zFZnHfLvjvDgTIZTO3ElC CGGN9RMVSQ6VhUzWQ/owS7nCaR+PqCVDumS2ARMn2gjKzMSVTYc52OoRqMztdNG8sa8v /V6Ww8KjOycOYju3SCDovXE78AnwWCA5e+8Ne8GGU1nqY7VvzMk9cX2E8p10jJQjUu9u fN9voVIf8g0hf+D4247A1Vwp7/cf/xtk79he7gD0c9o2wB3CZteNRn4IYdhATB7TUkfT +Jfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail header.b=EP1gCbnZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si5581231edd.74.2021.10.28.07.15.09; Thu, 28 Oct 2021 07:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail header.b=EP1gCbnZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231133AbhJ1OMN (ORCPT + 99 others); Thu, 28 Oct 2021 10:12:13 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]:12074 "EHLO mail-4022.proton.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhJ1OMN (ORCPT ); Thu, 28 Oct 2021 10:12:13 -0400 Date: Thu, 28 Oct 2021 14:09:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1635430184; bh=sfjvhnOlQn80OqnZTv0gYWgB7med55eS3xYGH2ls3VE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=EP1gCbnZShgu/GPwsJ8WVRZICz0Jz9E8IUzu3I/MevB20iYyP2TIdhQ9qY5YI44WB R64aqJ2Y9Cil+LzIM3t5Cr0ecNjpZNlkrjsnPfLlLLbqpOO+VzxMUYT+lnAeRkAGHA xlxCA6s28mWKPq+6qjgnZ7q3U8A6belIR+nxXCR893ijivnfThWXHDhGQIYE7458LT oZCsaOKYf3cBP0fE6ux1QBJooH2bnLRct5dH5Yzq4Pr5OC299oyO4nm42JVMfMBIs2 p6f4pM7uskWoARQaWdY32+pzVsiLbWpeGPn+Os7II7e6Vc1Hkl3qsDb1U93datg9uu xlPyfhn0RB9dA== To: George Kennedy From: Simon Ser Cc: gregkh@linuxfoundation.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Reply-To: Simon Ser Subject: Re: [PATCH] drm: check drm_format_info hsub and vsub to avoid divide by zero Message-ID: <8hH-kEJ_5Fp13IJG-WuzuXJ9cXjNaigTbD0yHYmgmOCk8WmJpZr4pd2zeDwdOiMrPxxyseNzRnSel5e2OOwzF8HPPaoQJWva-EgVF7xy3-k=@emersion.fr> In-Reply-To: <1635429437-21718-1-git-send-email-george.kennedy@oracle.com> References: <1635429437-21718-1-git-send-email-george.kennedy@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maybe a self-test checking this would be more appropriate?