diff options
author | 2010-06-21 17:03:21 +0200 | |
---|---|---|
committer | 2010-06-21 17:07:58 +0200 | |
commit | 272cbc98cfbdd30cff37a35f8ad8f1b737288e88 (patch) | |
tree | 9ac944574d3a98e106a11d362cb69293cacb0d48 /lib/genalloc.c | |
parent | ALSA: asihpi - Get rid of incorrect "long" types and casts. (diff) | |
download | wireguard-linux-272cbc98cfbdd30cff37a35f8ad8f1b737288e88.tar.xz wireguard-linux-272cbc98cfbdd30cff37a35f8ad8f1b737288e88.zip |
ALSA: usb/endpoint, fix dangling pointer use
Stanse found that in snd_usb_parse_audio_endpoints, there is a
dangling pointer dereference. When snd_usb_parse_audio_format fails,
fp is freed, and continue invoked. On the next loop, there is
"fp && fp->altsetting == 1 && fp->channels == 1" test, but fp is set
from the last iteration (but is bogus) and thus ilegally dereferenced.
Set fp to NULL before "continue".
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions