patch-2.4.20 linux-2.4.20/drivers/media/video/msp3400.c
Next file: linux-2.4.20/drivers/media/video/pms.c
Previous file: linux-2.4.20/drivers/media/video/meye.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Thu Nov 28 15:53:13 2002
- Orig file:
linux-2.4.19/drivers/media/video/msp3400.c
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/media/video/msp3400.c linux-2.4.20/drivers/media/video/msp3400.c
@@ -1266,6 +1266,7 @@
if (-1 == msp3400c_reset(c)) {
kfree(msp);
+ kfree(c);
dprintk("msp3400: no chip found\n");
return -1;
}
@@ -1275,6 +1276,7 @@
rev2 = msp3400c_read(c, I2C_MSP3400C_DFP, 0x1f);
if ((-1 == rev1) || (0 == rev1 && 0 == rev2)) {
kfree(msp);
+ kfree(c);
printk("msp3400: error while reading chip version\n");
return -1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)