]> git.baikalelectronics.ru Git - kernel.git/commit
avr32: Fix bug in early resource allocation code
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Thu, 27 Mar 2008 14:24:12 +0000 (15:24 +0100)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Thu, 27 Mar 2008 14:31:57 +0000 (15:31 +0100)
commitc5fb543bd4e365090379c3f5b32bc90146add1d2
tree752692d1d77fdad32484c6d5d50005d0de48f367
parent51a819d513b0ff4f427bb4e6b6d8dafda70cb61a
avr32: Fix bug in early resource allocation code

add_reserved_region() tries to keep the resource list sorted, so when
looking for a place to insert the new resource, it may break out
before the last entry.

When this happens, the list is broken in two because the sibling field
of the new entry doesn't point to the next resource. Fix it by
updating the new resource's sibling field appropriately.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/kernel/setup.c