lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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:

&gt; kzalloc() is a memory allocation function which can return NULL when
&gt; some internal memory errors happen. So it is better to check it to
&gt; 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

Powered by Openwall GNU/*/Linux Powered by OpenVZ