Commit 0598de40 authored by Federico Vaga's avatar Federico Vaga

kernel: fix memory leakage

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 08b08c1b
......@@ -589,6 +589,7 @@ void spec_fmc_destroy(struct spec_dev *spec)
spec_irq_exit(spec->fmc);
spec_i2c_exit(spec->fmc);
put_device(&spec->fmc->dev);
kfree(spec->fmc);
spec->fmc = NULL;
spec->flags &= ~SPEC_FLAG_FMC_REGISTERED;
}
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