]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (5472): Isl6421: don't reference freed memory
authorThomas Viehweger <Thomas.Viehweger@marconi.com>
Thu, 22 Mar 2007 14:20:32 +0000 (11:20 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 27 Mar 2007 11:45:56 +0000 (08:45 -0300)
After freeing a block there should be no reference to this block.

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>
drivers/media/dvb/frontends/isl6421.c

index ef319369ec262e2fd9016e0fa9d4b1674b433424..c967148a5945c6fd53a2da491b11c0b84cbfb3b2 100644 (file)
@@ -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;
        }