[alsa-devel] [PATCH] ASoC: codecs: use SNDRV_PCM_FMTBIT_* for format bitmask

Mark Brown broonie at kernel.org
Tue May 26 11:44:22 CEST 2015


On Tue, May 26, 2015 at 07:29:57AM +0200, Takashi Iwai wrote:
> Maciej S. Szmigiero wrote:

> > Found out by sparse on 0-day kernel tester.

> Wow, that made me wonder how these drivers could actually work.

AFAICT the bits were being set by being ored in from the sequential
values.

> BTW, how did you detect it?  Any static analyzer like sparse or
> smatch?  sparse didn't detect it at the last time I tried, IIRC...

Commit log says sparse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150526/80363974/attachment.sig>


More information about the Alsa-devel mailing list