Commit 169934f4 authored by Johannes Stezenbach's avatar Johannes Stezenbach Committed by Linus Torvalds

[PATCH] dvb: fix access to freed memory

- core: fix access to freed memory when unloading frontend drivers (fix by
  Gerd Knorr)
Signed-off-by: default avatarJohannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9076d4de
......@@ -912,8 +912,9 @@ int dvb_unregister_frontend(struct dvb_frontend* fe)
fe->ops->release(fe);
else
printk("dvb_frontend: Demodulator (%s) does not have a release callback!\n", fe->ops->info.name);
if (fe->frontend_priv)
kfree(fe->frontend_priv);
/* fe is invalid now */
if (fepriv)
kfree(fepriv);
up (&frontend_mutex);
return 0;
}
......
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