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;
}