]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix bug in ofwbus_release_resource() for non-ofwbus descendants
authorzbb <zbb@FreeBSD.org>
Thu, 18 Feb 2016 11:53:57 +0000 (11:53 +0000)
committerzbb <zbb@FreeBSD.org>
Thu, 18 Feb 2016 11:53:57 +0000 (11:53 +0000)
commitd520d79a17fed19e354e59fe3a6046fa89bcf8e3
tree8e2cc87755ba43f94745987e741c0d763c930c38
parent607785ea5a20b76ef6040a64af9b904fc9fa1a32
Fix bug in ofwbus_release_resource() for non-ofwbus descendants

Resource list for devices that are not ofwbus descendants, but
got to ofwbus method via bus_generic_release_resource() call chain,
cannot be found using BUS_GET_RESOURCE_LIST() used by ofwbus.
In that case, changing device's resource list should be avoided
(will not contain resource list prepared by ofw or simplebus).

Pointy-hat to: zbb
Reviewed by:   wma
Obtained from: Semihalf
Sponsored by:  Cavium
Differential Revision: https://reviews.freebsd.org/D5304
sys/dev/ofw/ofwbus.c