On Mon, Aug 11, 2008 at 7:30 PM, JasonZhao@viatech.com.cn wrote:
Hardwaremain()-> dev_configure();-> void root_dev_read_resources(device_t root) ->
void compact_resources(device_t dev)->
memmove(resource, resource + 1, dev->resources - i);
The third parameter should be (dev->resources-I)* sizeof(*resource)
that's a puzzler. I think you are right but ... how did this EVER work. Only if this code was never really exercised.
same bug is in v3, btw.
Wow. I am impressed with this catch!
ron