staging: r8712u: Handle some false positives from kmemleak
[linux-2.6-microblaze.git] / drivers / staging / rtl8712 / xmit_linux.c
index 1e86133..4ee4136 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/usb.h>
 #include <linux/ip.h>
 #include <linux/if_ether.h>
+#include <linux/kmemleak.h>
 
 #include "osdep_service.h"
 #include "drv_types.h"
@@ -133,6 +134,7 @@ int r8712_xmit_resource_alloc(struct _adapter *padapter,
                        netdev_err(padapter->pnetdev, "pxmitbuf->pxmit_urb[i] == NULL\n");
                        return _FAIL;
                }
+               kmemleak_not_leak(pxmitbuf->pxmit_urb[i]);
        }
        return _SUCCESS;
 }