* [PATCH] 2.5.8-dj1: net/atm/resources.c (rev. 2)
@ 2002-04-16 2:07 Frank Davis
0 siblings, 0 replies; only message in thread
From: Frank Davis @ 2002-04-16 2:07 UTC (permalink / raw)
To: davej; +Cc: linux-kernel, fdavis
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-16 3:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-16 2:07 [PATCH] 2.5.8-dj1: net/atm/resources.c (rev. 2) Frank Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).