Commit 34f64eda authored by Alessandro Rubini's avatar Alessandro Rubini

svec-fmc: do not release_firmware if request failed

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 107190c0
......@@ -63,7 +63,7 @@ static int svec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv,
ret = request_firmware(&fw, gw, dev);
if (ret < 0) {
dev_warn(dev, "request firmware \"%s\": error %i\n", gw, ret);
goto out;
return ret;
}
fmc_free_sdb_tree(fmc);
fmc->flags &= ~(FMC_DEVICE_HAS_GOLDEN | FMC_DEVICE_HAS_CUSTOM);
......
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