Commit 4b945ab9 authored by Alessandro Rubini's avatar Alessandro Rubini

core: bugfix on error handling at probe time

parent e9da030d
......@@ -171,7 +171,8 @@ int fd_probe(struct spec_dev *dev)
err:
while (--m, --i >= 0)
m->exit(fd);
if (m->exit)
m->exit(fd);
return ret;
}
......
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