summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-07-06 14:02:05 +0100
committerMark Brown <broonie@kernel.org>2026-07-06 14:02:05 +0100
commit052f2b6a59c034505529de28da2211e5d8cf094e (patch)
tree758a9bb724b7dd742f10cb4829a4e56209ac8769 /tools/testing
parentc56b7cc20d1783caa1727cbfa38d53131b9e277c (diff)
parentc845febafd92b2056abc0af541c1ad85785f1353 (diff)
downloadlinux-next-052f2b6a59c034505529de28da2211e5d8cf094e.tar.gz
linux-next-052f2b6a59c034505529de28da2211e5d8cf094e.zip
Merge branch 'for-linus' of https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/alsa/mixer-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/alsa/mixer-test.c b/tools/testing/selftests/alsa/mixer-test.c
index d4f845c32804..a329f901c5ed 100644
--- a/tools/testing/selftests/alsa/mixer-test.c
+++ b/tools/testing/selftests/alsa/mixer-test.c
@@ -84,6 +84,7 @@ static void find_controls(void)
if (err < 0) {
ksft_print_msg("Failed to get hctl for card %d: %s\n",
card, snd_strerror(err));
+ free(card_data);
goto next_card;
}
@@ -339,9 +340,9 @@ static bool ctl_value_index_valid(struct ctl_data *ctl,
}
if (int64_val > snd_ctl_elem_info_get_max64(ctl->info)) {
- ksft_print_msg("%s.%d value %lld more than maximum %ld\n",
+ ksft_print_msg("%s.%d value %lld more than maximum %lld\n",
ctl->name, index, int64_val,
- snd_ctl_elem_info_get_max(ctl->info));
+ snd_ctl_elem_info_get_max64(ctl->info));
return false;
}