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] [thread-next>] [day] [month] [year] [list]
Message-ID: <9ea8731a-7888-40a2-a183-4598884bbb27@sirena.org.uk>
Date: Wed, 11 Sep 2024 11:52:58 +0100
From: Mark Brown <broonie@...nel.org>
To: Qianqiang Liu <qianqiang.liu@....com>
Cc: amergnat@...libre.com, angelogioacchino.delregno@...labora.com,
	lgirdwood@...il.com, matthias.bgg@...il.com,
	linux-sound@...r.kernel.org, linux-mediatek@...ts.infradead.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: mt8365: Fix using uninitialized value "i2s_data"
 issue

On Wed, Sep 11, 2024 at 08:15:17AM +0800, Qianqiang Liu wrote:

>  
>  	spin_lock_irqsave(&afe_priv->afe_ctrl_lock, flags);
>  
> +	if (!i2s_data) {
> +		spin_unlock_irqrestore(&afe_priv->afe_ctrl_lock, flags);
> +		return;
> +	}
> +

Why would we look up i2s_data without the lock, take the lock, then
check if we actually found it?  That doesn't seem right.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ