Re: [PATCH] kernel/resource.c: fix stack overflow in __reserve_region_with_split

2012-08-27 Thread Thavatchai Makphaibulchoke
On 08/27/2012 10:30 PM, Ram Pai wrote: > For example: > if the region requested is 1 to 100, but 20-30 is already reserved, than > the earlier behavior would reserve 1-20 and 30-100. With your > patch, it will just reserve 1-20. > > RP > Thanks RP for pointing the problem. Sorry for missing par

Re: [PATCH] kernel/resource.c: fix stack overflow in __reserve_region_with_split

2012-08-27 Thread Ram Pai
On Mon, Aug 27, 2012 at 06:47:54PM -0600, T Makphaibulchoke wrote: > Using recurvise call to try adding a non-conflicting region in the function > __reserve_region_with_split() could result in a stack overflow in the case > that the recursive calls are too deep. Convert the recursive calls to > an