Commit ce5257cc authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/fmc-sdb: bugfix: child is relative for bridges

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent eb6e99f8
......@@ -68,7 +68,7 @@ static struct sdb_array *__fmc_scan_sdb_tree(struct fmc_device *fmc,
r = &arr->record[i];
arr->subtree[i] = ERR_PTR(-ENODEV);
if (r->empty.record_type == sdb_type_bridge) {
uint64_t subaddr = r->bridge.sdb_child;
uint64_t subaddr = address + r->bridge.sdb_child;
struct sdb_component *c;
c = &r->bridge.sdb_component;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment