]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up alsa patch for 3.18, 4.4, and 4.9
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 10:33:57 +0000 (11:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 10:33:57 +0000 (11:33 +0100)
queue-3.18/alsa-pcm-fix-uaf-in-snd_pcm_oss_get_formats.patch
queue-4.4/alsa-pcm-fix-uaf-in-snd_pcm_oss_get_formats.patch
queue-4.9/alsa-pcm-fix-uaf-in-snd_pcm_oss_get_formats.patch

index 25007232bedf557cf1b687824dde623b0a9ccf19..2887e6b26f97c5e1abba8e31f1d29ffc89d73d14 100644 (file)
@@ -33,7 +33,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (err < 0)
 -              return err;
 +              goto error;
-+      format_mask = hw_param_mask_c(params, SNDRV_PCM_HW_PARAM_FORMAT);
++      format_mask = *hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
        for (fmt = 0; fmt < 32; ++fmt) {
                if (snd_mask_test(&format_mask, fmt)) {
                        int f = snd_pcm_oss_format_to(fmt);
index 854f50683153c59749d4d91ab17b3cd976ddbc7b..8fef5941216e73380be305a0121811a1a7c6f103 100644 (file)
@@ -33,7 +33,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (err < 0)
 -              return err;
 +              goto error;
-+      format_mask = hw_param_mask_c(params, SNDRV_PCM_HW_PARAM_FORMAT);
++      format_mask = *hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
        for (fmt = 0; fmt < 32; ++fmt) {
                if (snd_mask_test(&format_mask, fmt)) {
                        int f = snd_pcm_oss_format_to(fmt);
index 854f50683153c59749d4d91ab17b3cd976ddbc7b..8fef5941216e73380be305a0121811a1a7c6f103 100644 (file)
@@ -33,7 +33,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (err < 0)
 -              return err;
 +              goto error;
-+      format_mask = hw_param_mask_c(params, SNDRV_PCM_HW_PARAM_FORMAT);
++      format_mask = *hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
        for (fmt = 0; fmt < 32; ++fmt) {
                if (snd_mask_test(&format_mask, fmt)) {
                        int f = snd_pcm_oss_format_to(fmt);