Re: Patch to mcd.c (was: Re: Bug in sysmount:1.3.75 ?)

Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Thu, 21 Mar 1996 09:05:27 +0100


On 20 Mar 96 at 21:38, Bjorn Ekwall wrote:

[...]
> @@ -1181,6 +1182,7 @@
> }
>
> if (check_region(mcd_port, 4)) {
> + unregister_blkdev(MAJOR_NR, "mcd");

For interrupts the pointer value has to be the same as when
requesting the interrupt. For devices I'm nut sure. Despite of that
gcc will "share" the literal strings (depending on options), but I
think it would be wise to ignore all that and make sure that the
pointer passed to request a ressource should be the same when
releasing it.

> printk("Init failed, I/O port (%X) already in use\n",
> mcd_port);
> return -EIO;