]> exis.tech > repos - linux.git/blobdiff - tools/testing/selftests/alsa/mixer-test.c
Merge tag 'hwmon-for-v7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux.git] / tools / testing / selftests / alsa / mixer-test.c
index d4f845c3280456e80c1357ca79a0c2085e6d742b..a329f901c5edf4f1d4c4c010fbf550543e4dc3a9 100644 (file)
@@ -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;
                }