Leak found by the Stanford Checker (patch by Randy Dunlap).

 atmsar.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/drivers/usb/misc/atmsar.c b/drivers/usb/misc/atmsar.c
--- a/drivers/usb/misc/atmsar.c Thu Feb  6 10:05:43 2003
+++ b/drivers/usb/misc/atmsar.c Thu Feb  6 10:05:43 2003
@@ -218,12 +218,12 @@
 {
        struct atmsar_vcc_data *new;
 
+       if (!vcc)
+               return NULL;
+
        new = kmalloc (sizeof (struct atmsar_vcc_data), GFP_KERNEL);
 
        if (!new)
-               return NULL;
-
-       if (!vcc)
                return NULL;
 
        memset (new, 0, sizeof (struct atmsar_vcc_data));



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to