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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <34e1ae43-0b81-46bd-8fa8-a5fcf48def3e@web.de>
Date: Tue, 10 Sep 2024 17:30:30 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Tomi Valkeinen <tomi.valkeinen@...asonboard.com>,
 linux-sound@...r.kernel.org, devicetree@...r.kernel.org,
 dri-devel@...ts.freedesktop.org, linux-arm-kernel@...ts.infradead.org,
 Conor Dooley <conor+dt@...nel.org>, Daniel Vetter <daniel@...ll.ch>,
 David Airlie <airlied@...il.com>, Jaroslav Kysela <perex@...ex.cz>,
 Krzysztof Kozlowski <krzk+dt@...nel.org>,
 Lars-Peter Clausen <lars@...afoo.de>,
 Laurent Pinchart <laurent.pinchart@...asonboard.com>,
 Liam Girdwood <lgirdwood@...il.com>,
 Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
 Mark Brown <broonie@...nel.org>, Maxime Ripard <mripard@...nel.org>,
 Michal Simek <michal.simek@....com>, Rob Herring <robh+dt@...nel.org>,
 Takashi Iwai <tiwai@...e.com>, Thomas Zimmermann <tzimmermann@...e.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
 Anatoliy Klymenko <anatoliy.klymenko@....com>,
 Péter Ujfalusi <peter.ujfalusi@...il.com>,
 Vishal Sagar <vishal.sagar@....com>
Subject: Re: [PATCH v3 3/3] drm: xlnx: zynqmp_dpsub: Add DP audio support

…
> +++ b/drivers/gpu/drm/xlnx/zynqmp_dp_audio.c
> @@ -0,0 +1,461 @@
…
> +static int dp_dai_hw_free(struct snd_pcm_substream *substream,
> +			  struct snd_soc_dai *socdai)
> +{
…
> +	struct zynqmp_dpsub_audio *audio = dpsub->audio;
> +
> +	mutex_lock(&audio->enable_lock);
…
> +	audio->enabled_streams--;
> +
> +	mutex_unlock(&audio->enable_lock);
> +
> +	return 0;
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&audio->enable_lock);”?
https://elixir.bootlin.com/linux/v6.11-rc7/source/include/linux/mutex.h#L196

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ