[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b56b155c-25c0-4958-9f59-20669ee2ea01@collabora.com>
Date: Fri, 10 Nov 2023 12:57:17 +0100
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Stuart Lee <stuart.lee@...iatek.com>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>
Cc: Philipp Zabel <p.zabel@...gutronix.de>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Matthias Brugger <matthias.bgg@...il.com>,
"Nancy . Lin" <nancy.lin@...iatek.com>,
dri-devel@...ts.freedesktop.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Lancelot Wu <lancelot.wu@...iatek.com>,
Shawn Sung <shawn.sung@...iatek.com>,
Pablo Sun <pablo.sun@...iatek.com>,
Macpaul Lin <macpaul.lin@...iatek.com>, stable@...r.kernel.org
Subject: Re: [PATCH 1/1] drm/mediatek: Fix access violation in
mtk_drm_crtc_dma_dev_get
Il 10/11/23 02:29, Stuart Lee ha scritto:
> Add error handling to check NULL input in
> mtk_drm_crtc_dma_dev_get function.
>
> While display path is not configured correctly, none of crtc is
> established. So the caller of mtk_drm_crtc_dma_dev_get may pass
> input parameter *crtc as NULL, Which may cause coredump when
> we try to get the container of NULL pointer.
>
> Fixes: cb1d6bcca542 ("drm/mediatek: Add dma dev get function")
> Signed-off-by: Stuart Lee <stuart.lee@...iatek.com>
> Cc: stable@...r.kernel.org
Reviewed-by: AngeloGioacchino DEl Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists