Commit f5c3b0ea authored by Michel Arruat's avatar Michel Arruat Committed by Alessandro Rubini

fmc-core: fix an error path in registration

If a client registered with a null fmc-hwdev, there was a small memory
parent 25ec6c06
......@@ -151,7 +151,8 @@ int fmc_device_register_n(struct fmc_device **devs, int n)
if (!fmc->hwdev) {
pr_err("%s: device nr. %i has no hwdev pointer\n",
__func__, i);
return -EINVAL;
ret = -EINVAL;
if (fmc->flags == FMC_DEVICE_NO_MEZZANINE) {
dev_info(fmc->hwdev, "absent mezzanine in slot %d\n",
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