[alsa-devel] [PATCH] ALSA: aoa: onyx: always initalize register read value

Takashi Iwai tiwai at suse.de
Mon Jul 29 09:23:09 CEST 2019


On Mon, 29 Jul 2019 09:14:22 +0200,
Johannes Berg wrote:
> 
> A lot of places in the driver use onyx_read_register() without
> checking the return value, and it's been working OK for ~10 years
> or so, so probably never fails ... Rather than trying to check the
> return value everywhere, which would be relatively intrusive, at
> least make sure we don't use an uninitialized value.
> 
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Signed-off-by: Johannes Berg <johannes at sipsolutions.net>

Thanks, applied now with a correction of a typo in the subject line
and Fixes tag.


Takashi


More information about the Alsa-devel mailing list