patch-2.4.0-test10 linux/drivers/media/video/tda9875.c
Next file: linux/drivers/media/video/tea6300.c
Previous file: linux/drivers/media/video/tda985x.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Oct 16 12:37:04 2000
- Orig file:
v2.4.0-test9/linux/drivers/media/video/tda9875.c
- Orig date:
Sun Aug 6 12:45:28 2000
diff -u --recursive --new-file v2.4.0-test9/linux/drivers/media/video/tda9875.c linux/drivers/media/video/tda9875.c
@@ -11,9 +11,13 @@
* Based on tda9855.c by Steve VanDeBogart (vandebo@uclink.berkeley.edu)
* Which was based on tda8425.c by Greg Alexander (c) 1998
*
+ * Contributors:
+ * Arnaldo Carvalho de Melo <acme@conectiva.com.br> (0.2)
+ *
* OPTIONS:
* debug - set to 1 if you'd like to see debug messages
*
+ * Revision 0.2 - resource allocation fixes in tda9875_attach (08/14/2000)
* Revision: 0.1 - original version
*/
@@ -232,8 +236,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_tda9875_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)