DVB: isl6421: don't reference freed memory
DVB: isl6421: don't reference freed memory
After freeing a block there should be no reference to this block.
(cherry picked from commit 09d4895488)
Signed-off-by: Thomas Viehweger <Thomas.Viehweger@marconi.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
693efbebbb
commit
69e329bf02
@@ -122,6 +122,7 @@ struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter
|
||||
/* detect if it is present or not */
|
||||
if (isl6421_set_voltage(fe, SEC_VOLTAGE_OFF)) {
|
||||
kfree(isl6421);
|
||||
fe->sec_priv = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user