Commit 5d8fefaa authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/fmc-sdb.c: bugfix: sdb core can be at address 0

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 2c6089d1
......@@ -208,7 +208,7 @@ signed long fmc_find_sdb_device(struct sdb_array *tree,
if (!IS_ERR(tree->subtree[i]))
res = fmc_find_sdb_device(tree->subtree[i],
vid, did, sz);
if (res > 0)
if (res >= 0)
return res + tree->baseaddr;
if (r->empty.record_type != sdb_type_device)
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