Messages in this thread |  | | Subject | Re: freeing memory | Date | Sun, 22 Oct 2000 14:09:41 -0300 | From | Horst von Brand <> |
| |
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/
|  |