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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19FC1C61DA7 for ; Thu, 26 Jan 2023 19:01:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232401AbjAZTBh (ORCPT ); Thu, 26 Jan 2023 14:01:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232326AbjAZTB0 (ORCPT ); Thu, 26 Jan 2023 14:01:26 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F9B565F00 for ; Thu, 26 Jan 2023 11:01:23 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id hw16so7622761ejc.10 for ; Thu, 26 Jan 2023 11:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j/MQtjH1mkm7AqWVUG8R8PxBUPeeTUYPrWIK/5+KgiA=; b=BUicY8w7Cg4CvvVRquFV+WJ0QeOwi6vsbrxmHOhMGwV25qxRXRkUT9iPFTPebUc/88 g9f/A7OOf1p2fdc/6q8kVGk7cH7/HBZFHg+7sOuL/OmO0FVYpXHAd350rwqRm15A6KKy aOBpNvSsoTfUN45J+ewLql9fUXdHwPOarMsXRbuu61l3OQLz0HV7HaIVKHvKi2e1bXJd sUlqHs/0NZKIxqoaH3Ih3XlZIa4BIRysmWxdhg4gnOgfdoMPMW0MceWRR9VcPKBLjFfa pBOMZBlqowhKoCBDFLv6a0BUnSqNlWM5iQ/zNQoAr7/hj/2mwE1icrYn0ALppYxhmTJW tuOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j/MQtjH1mkm7AqWVUG8R8PxBUPeeTUYPrWIK/5+KgiA=; b=ivdtmxdCDEJmjsFWHsNLx/C8v0b06FwFF+Zu2IvmU0FiDrinJ0+JAwCMEm+aGmCW4D t2/50iAnUuXBSQSnp5C/Jwn3b3sMDIBhJNGpeyAP84Nh4R8DI7i8ylqnsAPpCLVZJIif xH3F2j7SpXzaW+DrMG/Re6NnD2RHgajUkfv7dkjN9H8VPdGHTOOriIyVsx52LzHMqgEb uM8q0tvcItNRNuhLe4H/B7NFAiBg621T6OHZb2SVanoErrByXFW/BTGd3ZEV5eT8wB1K 5/AJKF9UVHqQ4SnQPl3EpwMGeQlWJpoVoZmgAiU73QTcERxnBLKoaQ8gtYmmKlxwC44j jAFQ== X-Gm-Message-State: AFqh2ko1GWly4x3rLXKYzXIrRJlKJU+quceiGQAtdSQn8wUn9D1K1WHk uN4kLJizQp/WGrmveSb8G83HnQ== X-Google-Smtp-Source: AMrXdXsXfrQy45Ya6lKA6L50vJMUW7P5TrZp7aWrVmJXxSfb3EXhEPKbWX5+uG1SZBE6FL4mJZco+A== X-Received: by 2002:a17:906:9e20:b0:7c1:10b4:4742 with SMTP id fp32-20020a1709069e2000b007c110b44742mr31676549ejc.55.1674759681746; Thu, 26 Jan 2023 11:01:21 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id o25-20020a1709061b1900b0084d4e9a13cbsm974982ejg.221.2023.01.26.11.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 11:01:21 -0800 (PST) From: Dmitry Baryshkov To: robdclark@gmail.com, quic_abhinavk@quicinc.com, sean@poorly.run, airlied@gmail.com, daniel@ffwll.ch, quic_jesszhan@quicinc.com, ville.syrjala@linux.intel.com, yang.lee@linux.alibaba.com, Jiasheng Jiang Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/mdp5: Add check for kzalloc Date: Thu, 26 Jan 2023 21:01:04 +0200 Message-Id: <167475959090.3954305.15850906427772630673.b4-ty@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221206074819.18134-1-jiasheng@iscas.ac.cn> References: <20221206074819.18134-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 06 Dec 2022 15:48:19 +0800, Jiasheng Jiang wrote: > As kzalloc may fail and return NULL pointer, > it should be better to check the return value > in order to avoid the NULL pointer dereference. > > Applied, thanks! [1/1] drm/msm/mdp5: Add check for kzalloc https://gitlab.freedesktop.org/lumag/msm/-/commit/13fcfcb2a9a4 Best regards, -- Dmitry Baryshkov