lkml.org 
[lkml]   [2000]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers/char/tea6420.c: resource alloc fix
Linus,

The e-mail address of the maintainer (justdave@ynn.com) for this driver
is not working, please consider applying.

- Arnaldo

--- linux-2.4.0-test7-pre3/drivers/char/tea6420.c Mon May 15 16:06:25 2000
+++ linux-2.4.0-test7-pre3.acme/drivers/char/tea6420.c Tue Aug 15 10:47:09 2000
@@ -9,6 +9,9 @@
* This code is placed under the terms of the GNU General Public License
* Code liberally copied from msp3400.c, which is by Gerd Knorr
*
+ * Changes:
+ * Arnaldo Carvalho de Melo <acme@conectiva.com.br> - 08/14/2000
+ * - resource allocation fixes in tea6300_attach
*/

#include <linux/module.h>
@@ -141,8 +144,10 @@
client->addr = addr;

client->data = tea = kmalloc(sizeof *tea,GFP_KERNEL);
- if (!tea)
+ if (!tea) {
+ kfree(client);
return -ENOMEM;
+ }
memset(tea,0,sizeof *tea);
do_tea6420_init(client);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:37    [W:0.015 / U:0.852 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site