Messages in this thread | ![/](/images/icornerl.gif) | | Date | Wed, 19 Dec 2007 11:50:36 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH] x86: Fix dmi_alloc() to not advance alloc index in case of failure |
| |
* Parag Warudkar <parag.warudkar@gmail.com> wrote:
> dmi_alloc() for CONFIG_X86_64 is defined to allocate from a static > array and it maintains a allocation index which is advanced each time > allocation is attempted - it gets incremented even if an allocation > fails thereby depriving any future request that may be small enough to > be satisfied from the array. > > Fix this by first testing if allocation is going to be possible and > incrementing alloc index only then.
Thanks, applied. Nice catch!
Ingo
| ![\](/images/icornerr.gif) |