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

kernel: fix memory leakage

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