stradis.c - vfree() checking cleanups
Subsystems (2)
PATCH RESEND 24/29 stradis.c - vfree() checking cleanups
stradis.c vfree() checking cleanups.
Signed-off by: James Lamanna <[email protected]>
stradis.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-)
drivers/media/video/stradis.c +3 -6
@@ -2188,12 +2188,9 @@/* unmap and free memory */ saa->audhead = saa->audtail = saa->osdhead =0 ; saa->vidhead = saa->vidtail = saa->osdtail =0 ; -if (saa->vidbuf) -vfree (saa->vidbuf); -if (saa->audbuf) -vfree (saa->audbuf); -if (saa->osdbuf) -vfree (saa->osdbuf); +vfree (saa->vidbuf); +vfree (saa->audbuf); +vfree (saa->osdbuf);if (saa->dmavid2)kfree ((void *) saa->dmavid2); saa->audbuf = saa->vidbuf = saa->osdbuf =NULL ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors