diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-11 14:39:44 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-01-11 17:19:23 +0100 |
commit | 46a049dae771b95e77ac6c823330f4a60f600236 (patch) | |
tree | 8620694d4b704e717517c9730145d76bc68fd9a5 /sound/core | |
parent | 921282360b9c9bf34c75cd18bb90f298c4f4ebc8 (diff) | |
download | linux-46a049dae771b95e77ac6c823330f4a60f600236.tar.bz2 |
ALSA: hda/ca0132 - fix possible NULL pointer use
gcc-7 caught what it considers a NULL pointer dereference:
sound/pci/hda/patch_ca0132.c: In function 'dspio_scp.constprop':
sound/pci/hda/patch_ca0132.c:1487:4: error: argument 1 null where non-null expected [-Werror=nonnull]
This is plausible from looking at the function, as we compare 'reply'
to NULL earlier in it. I have not tried to analyze if there are constraints
that make it impossible to hit the bug, but adding another NULL check in
the end kills the warning and makes the function more robust.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
0 files changed, 0 insertions, 0 deletions