[PATCH] 2.5.8-dj1: net/atm/resources.c (rev. 2)

Frank Davis (fdavis@si.rr.com)
Mon, 15 Apr 2002 22:07:01 -0400 (EDT)


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/