]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - sound/core/oss/pcm_oss.c
Merge branch 'topic/misc' into for-linus
[mv-sheeva.git] / sound / core / oss / pcm_oss.c
index b753ec661fcfd149d079f530e05729d8d0cc524b..a2e4eb324699ace38148bd087d59e50d7d173e44 100644 (file)
@@ -453,8 +453,10 @@ static int snd_pcm_hw_param_near(struct snd_pcm_substream *pcm,
        } else {
                *params = *save;
                max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir);
-               if (max < 0)
+               if (max < 0) {
+                       kfree(save);
                        return max;
+               }
                last = 1;
        }
  _end: