pcm_oss.c - vfree() checking cleanups
Subsystems (2)
PATCH RESEND 6/29 pcm_oss.c - vfree() checking cleanups
pcm_oss.c vfree() checking cleanups.
Signed-off by: James Lamanna <[email protected]>
pcm_oss.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
sound/core/oss/pcm_oss.c +2 -4
@@ -513,8 +513,7 @@ runtime->oss.params =0 ; runtime->oss.prepare =1 ; -if (runtime->oss.buffer !=NULL ) -vfree (runtime->oss.buffer); +vfree (runtime->oss.buffer); runtime->oss.buffer =vmalloc (runtime->oss.period_bytes); runtime->oss.buffer_used =0 ;if (runtime->dma_area)
@@ -1671,8 +1670,7 @@ {snd_pcm_runtime_t *runtime; runtime = substream->runtime; -if (runtime->oss.buffer) -vfree (runtime->oss.buffer); +vfree (runtime->oss.buffer);snd_pcm_oss_plugin_clear (substream); substream->oss.file =NULL ; substream->oss.oss =0 ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors