lkml.org 
[lkml]   [2002]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.5.8-dj1: net/atm/resources.c (rev. 2)
Hello all,
Here's an updated version of the patch that fixes a free_atm_dev()
warning.
Regards,
Frank

--- net/atm/resources.c.old Mon Apr 15 21:42:25 2002
+++ net/atm/resources.c Mon Apr 15 22:02:02 2002
@@ -82,14 +82,14 @@
return NULL;
}

-struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops
+struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops,
int number, atm_dev_flags_t *flags)
{
struct atm_dev *dev = NULL;

spin_lock(&atm_dev_lock);

- dev = alloc_atm_dev(type);
+ dev = __alloc_atm_dev(type);
if (!dev) {
printk(KERN_ERR "atm_dev_register: no space for dev %s\n",
type);
@@ -97,7 +97,7 @@
}
if (number != -1) {
if (atm_find_dev(number)) {
- free_atm_dev(dev);
+ __free_atm_dev(dev);
dev = NULL;
goto done;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.102 / U:1.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site