dev_add_child is a very unsafe function. If called multiple times
it allows setting the same device to different parents thus corrupting
the siblings list. This happens regularly since:
| commit
|
||
---|---|---|
.. | ||
bus.c | ||
driver.c | ||
Makefile | ||
platform.c | ||
resource.c |