mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] wavelan: check request_region return value
       [not found] <20011230172229.M24320@hapablap.dyn.dhs.org>
@ 2002-01-09 22:29 ` Jean Tourrilhes
  0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2002-01-09 22:29 UTC (permalink / raw)
  To: Linus Torvalds, Marcelo Tosatti, Jeff Garzik,
	Linux kernel mailing list, Steven Walter

On Sun, Dec 30, 2001 at 05:22:29PM -0600, Steven Walter wrote:
> I recently changed several drivers in drivers/net of the Linux kernel to
> correctly check the return value of request_region.  Since you appear
> to be the maintainer of this driver, I'm forwarding the patch to you.
> 
> Thanks
> -- 
> -Steven

	For some reason, the tab got mangled, so I redid the
patch. Ready to go in kernel 2.4.X and 2.5.X.

	Jean

diff -u -p linux/drivers/net/wavelan.j1.c linux/drivers/net/wavelan.c
--- linux/drivers/net/wavelan.j1.c	Wed Jan  9 14:23:19 2002
+++ linux/drivers/net/wavelan.c	Wed Jan  9 14:25:04 2002
@@ -4019,7 +4019,8 @@ static int __init wavelan_config(device 
 
 	dev->irq = irq;
 
-	request_region(ioaddr, sizeof(ha_t), "wavelan");
+	if (!request_region(ioaddr, sizeof(ha_t), "wavelan"))
+		return -EBUSY;
 
 	dev->mem_start = 0x0000;
 	dev->mem_end = 0x0000;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-09 22:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20011230172229.M24320@hapablap.dyn.dhs.org>
2002-01-09 22:29 ` [PATCH] wavelan: check request_region return value Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®