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: <20231206014429.GB236001@dragon>
Date:   Wed, 6 Dec 2023 09:44:29 +0800
From:   Shawn Guo <shawnguo@...nel.org>
To:     Kunwu Chan <chentao@...inos.cn>
Cc:     linux@...linux.org.uk, s.hauer@...gutronix.de,
        kernel@...gutronix.de, festevam@...il.com, linux-imx@....com,
        arnd@...db.de, angus.chen@...uarmicro.com,
        u.kleine-koenig@...gutronix.de,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
        kunwu.chan@...mail.com, Ahmad Fatoum <a.fatoum@...gutronix.de>
Subject: Re: [PATCH v2] ARM: imx: Check return value of devm_kasprintf in
 imx_mmdc_perf_init

On Wed, Nov 22, 2023 at 02:46:36PM +0800, Kunwu Chan wrote:
> devm_kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful
> by checking the pointer validity.
> 
> Release the id allocated in 'mmdc_pmu_init' when 'devm_kasprintf'
> return NULL
> 
> Suggested-by: Ahmad Fatoum <a.fatoum@...gutronix.de>
> Fixes: e76bdfd7403a ("ARM: imx: Added perf functionality to mmdc driver")
> Signed-off-by: Kunwu Chan <chentao@...inos.cn>

Applied, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ