[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tencent_283D88183356EE2B0706054EB8B452C3FF06@qq.com>
Date: Thu, 24 Mar 2022 15:52:02 +0800
From: "Xiaoke Wang" <xkernel.wang@...mail.com>
To: "xkernel.wang" <xkernel.wang@...mail.com>
Cc: "liviu.dudau" <liviu.dudau@....com>,
"brian.starkey" <brian.starkey@....com>,
"airlied" <airlied@...ux.ie>,
"daniel" <daniel@...ll.ch>,
"dri-devel" <dri-devel@...ts.freedesktop.org>,
"linux-kernel" <linux-kernel@...r.kernel.org>
Subject: Re:[PATCH] drm: mali-dp: check the return value of kzalloc()
Thu, 24 Mar 2022 14:43:17 +0800, xkernel.wang@...mail.com wrote:
> kzalloc() is a memory allocation function which can return NULL when
> some internal memory errors happen. So it is better to check it to
> prevent potential wrong memory access.
Withdraw this. The original code is also fine since there is a valid check
inside __drm_atomic_helper_connector_reset() but I missed to track it.
Powered by blists - more mailing lists