patch-2.4.0-test10 linux/drivers/media/video/tda7432.c
Next file: linux/drivers/media/video/tda8425.c
Previous file: linux/drivers/md/md.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon Oct 16 12:37:04 2000
- Orig file:
v2.4.0-test9/linux/drivers/media/video/tda7432.c
- Orig date:
Mon May 15 12:06:25 2000
diff -u --recursive --new-file v2.4.0-test9/linux/drivers/media/video/tda7432.c linux/drivers/media/video/tda7432.c
@@ -25,6 +25,10 @@
* Added I2C_DRIVERID_TDA7432
* added loudness insmod control
* Revision: 0.1 - initial version
+ *
+ * Changes:
+ * Arnaldo Carvalho de Melo <acme@conectiva.com.br> - 08/14/2000
+ * - resource allocation fixes in tda7432_attach
*/
#include <linux/module.h>
@@ -320,8 +324,10 @@
client->addr = addr;
client->data = t = kmalloc(sizeof *t,GFP_KERNEL);
- if (!t)
+ if (!t) {
+ kfree(client);
return -ENOMEM;
+ }
memset(t,0,sizeof *t);
do_tda7432_init(client);
MOD_INC_USE_COUNT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)