[lkml]   [2002]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subjectfix to drivers/sound/mad16.c cleanup 2.4.19 [PATCH]

    drivers/sound/mad16.c failed to cleanup the gameport when removing
    the module, resulting in the ioport never getting freed up and
    cat /proc/ioports
    causes a kernel OOPS from then on.

    I am not a veteran kernel hacker but I'm pretty sure the attached
    patch is sound...

    This patch is against 2.4.19 but my suspicion is that it's relevant
    in 2.5 as well (probably no changes). It's not in 2.2 because the
    joystick driver in that setup is completely separate from the mad16

    Please email me if you have any questions/comments. I do not
    generally read lkml.

    While we're on this note, anyone care to guess why my SBPCD drive
    stopped working when I upgraded from 2.2.19 to 2.4.19? It looks like
    I'm passing the correct params to mad16 to initialize the cd-rom drive..
    i don't want to have to go out and buy a new cd-rom so soon! :)

    Thanks everybody! - greg

    p.s. isn't it about time for a feature freeze on 2.4.19? I would
    have thought after waiting so long all the details should be settling
    down by now.

    I hope it's alright to plain-text attach...

    --- drivers/sound/mad16.c 2002/09/12 02:15:25
    +++ drivers/sound/mad16.c 2002/09/12 02:19:49
    @@ -1051,6 +1051,12 @@
    if (found_mpu)
    + if ( {
    + /* the gameport was initialized so we must free it up */
    + gameport_unregister_port(&gameport);
    + = 0;
    + release_region(0x201, 1);
    + }

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2005-03-22 13:28    [W:9.255 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site