projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge back cpufreq updates for v5.11.
[linux-2.6-microblaze.git]
/
sound
/
hda
/
ext
/
hdac_ext_controller.c
diff --git
a/sound/hda/ext/hdac_ext_controller.c
b/sound/hda/ext/hdac_ext_controller.c
index
4d060d5
..
b0c0ef8
100644
(file)
--- a/
sound/hda/ext/hdac_ext_controller.c
+++ b/
sound/hda/ext/hdac_ext_controller.c
@@
-148,6
+148,8
@@
struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_bus *bus,
return NULL;
if (bus->idx != bus_idx)
return NULL;
+ if (addr < 0 || addr > 31)
+ return NULL;
list_for_each_entry(hlink, &bus->hlink_list, list) {
for (i = 0; i < HDA_MAX_CODECS; i++) {