Re: freeing memory

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sun Oct 22 2000 - 12:09:41 EST


mdaljeet@in.ibm.com said:
> i am allocating some 1000 bytes of memory as folows
>
> f_malloc()
> {
> .....
> for (i=1 to 10)
> {
> size = 1000;
> pAddr[i] = (unsigned long) kmalloc(size, GFP_DMA | GFP_BUFFER);
> }
> ...
> }

You don't check if you got the memory (GFP_DMA is _hard_ to get)

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Vin~a del Mar, Chile                               +56 32 672616
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:19 EST