From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 017F62737EE; Fri, 9 Jan 2026 12:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767961068; cv=none; b=nrCzHQTwCWPTmlKCbTCUQuFjMfZSyWZMqIZubUVfYJOljK7t7UdddXwAgKnksy4gtwqU0xvJ7byGt87DYQWCW0amjnfnODgkpfcVuvADoaxSOYLCyt6K1J6YWG8hDPtDv3qBrxjCgYaMP8o+lg308pDGEe2dkfh5NwJMgREOBk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767961068; c=relaxed/simple; bh=TJEyA5ClWZDPOuV9t1UtXhKfez+heswpN4rcFQazBwY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ig+saCiwiGq5HZIaP6yhdkDfPqzfTROBp/C5oHjSWLJu7973WcIfBiunzR88lBqmAx8CRnpUoEIjhv9J9roebIHS4A0YM4UH8GnZchohi1Z23u3RWc3HVG/bsZgat871Hk2bnY4pUigG0WEnajdmOUilod+6EKzuU4h6usnRLqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GYvXKrPW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GYvXKrPW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80C9BC4CEF1; Fri, 9 Jan 2026 12:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767961067; bh=TJEyA5ClWZDPOuV9t1UtXhKfez+heswpN4rcFQazBwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GYvXKrPWh+NnC37msj9v3WJG8imC2NFDvWkHwHzPT5ppjU/hYHtb/CQfIOvnzv058 MqijdlrXNAUs6uTTTfVo0FIhAVYJzvCsB6MSaMYJ841mbCqzH9/HiMdRvHJqBs1XK/ Pmd6aD+mJpPGIhTfnK7DPKF22sT8G6ikPVhrtpg0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nikolay Kuratov , Dmitry Baryshkov Subject: [PATCH 6.6 623/737] drm/msm/dpu: Add missing NULL pointer check for pingpong interface Date: Fri, 9 Jan 2026 12:42:42 +0100 Message-ID: <20260109112157.437410183@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109112133.973195406@linuxfoundation.org> References: <20260109112133.973195406@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nikolay Kuratov commit 88733a0b64872357e5ecd82b7488121503cb9cc6 upstream. It is checked almost always in dpu_encoder_phys_wb_setup_ctl(), but in a single place the check is missing. Also use convenient locals instead of phys_enc->* where available. Cc: stable@vger.kernel.org Fixes: d7d0e73f7de33 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") Signed-off-by: Nikolay Kuratov Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/693860/ Link: https://lore.kernel.org/r/20251211093630.171014-1-kniv@yandex-team.ru Signed-off-by: Dmitry Baryshkov Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c @@ -205,14 +205,12 @@ static void dpu_encoder_phys_wb_setup_cd if (mode_3d && hw_pp && hw_pp->merge_3d) intf_cfg.merge_3d = hw_pp->merge_3d->idx; - if (phys_enc->hw_pp->merge_3d && phys_enc->hw_pp->merge_3d->ops.setup_3d_mode) - phys_enc->hw_pp->merge_3d->ops.setup_3d_mode(phys_enc->hw_pp->merge_3d, - mode_3d); + if (hw_pp && hw_pp->merge_3d && hw_pp->merge_3d->ops.setup_3d_mode) + hw_pp->merge_3d->ops.setup_3d_mode(hw_pp->merge_3d, mode_3d); /* setup which pp blk will connect to this wb */ - if (hw_pp && phys_enc->hw_wb->ops.bind_pingpong_blk) - phys_enc->hw_wb->ops.bind_pingpong_blk(phys_enc->hw_wb, - phys_enc->hw_pp->idx); + if (hw_pp && hw_wb->ops.bind_pingpong_blk) + hw_wb->ops.bind_pingpong_blk(hw_wb, hw_pp->idx); phys_enc->hw_ctl->ops.setup_intf_cfg(phys_enc->hw_ctl, &intf_cfg); } else if (phys_enc->hw_ctl && phys_enc->hw_ctl->ops.setup_intf_cfg) {