bep poiner

From: Joilnen Leite (knl_joi@yahoo.com.br)
Date: Thu Jul 24 2003 - 19:41:51 EST


Excuse me friends if I am simpler but,
in auerbuf_setup function bep pointer is not free, I
guess
maybe it is better ?

--- /usr/src/linux/drivers/usb/misc/auerswald.c
2003-07-02 14:07:48.000000000 -0300
+++ drivers/usb/misc/auerswald.c 2003-07-24
18:27:44.000000000 -0300
@@ -802,6 +802,8 @@
 bl_fail:/* not enough memory. Free allocated elements
*/
         dbg ("auerbuf_setup: no more memory");
         auerbuf_free_buffers (bcp);
+ if(bep)
+ kfree(bep);
         return -ENOMEM;
 }
  
thanks !

_______________________________________________________________________
Conheça o novo Cadê? - Rápido, fácil e preciso.
42 milhões de páginas brasileiras, busca por imagens e muito mais!
http://www.cade.com.br
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:24 EST