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
|
||
---|---|---|
.. | ||
Makefile | ||
bus.c | ||
driver.c | ||
platform.c | ||
resource.c |