Re: [CHECKER] 32 Memory Leaks on Error Paths

From: Pete Zaitcev (zaitcev_at_redhat.com)
Date: 09/24/03

  • Next message: Matt Heler: "Re: Minimizing the Kernel"
    Date:	Wed, 24 Sep 2003 12:38:58 -0400
    To: Alan Cox <alan@lxorguk.ukuu.org.uk>
    
    

    > > - spin_lock(&codec->ac97_lock);
    > > + down(&unit->ac97_lock);
    > > /* XXX Do make use of dev->id */
    > > - ymfpci_codec_ready(codec, 0, 0);
    >
    > This breaks ac97 locking and should not be applied. The core ac97
    > code is called some times with interrupts disabled. That is unavoidable.
    >
    > The only change that is relevant is the kfree

    In that case, whoever added spinlocks should have removed
    schedule() from ymfpci_ready_wait().

    -- Pete
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Matt Heler: "Re: Minimizing the Kernel"

    Relevant Pages

    • Re: [RFC/PATCH] FUSYN 5/10: kernel fuqueues
      ... > I am already asking for new names for whoever doesn't like ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH] remove redundant NULL checks before kfree() in drivers/video/
      ... > The first thing kfree() does is check for the NULL pointer. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: PATCH: (as177) Add class_device_unregister_wait() and platform_device_unregister_wait() to the
      ... You're oversimplifying a little, though. ... and it unregisters everything it has registered, and all those references ... synchronous or it supplies a callback which does the actual kfree. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: A Great Idea (tm) about reimplementing NLS.
      ... On Wednesday 15 June 2005 10:36 pm, Theodore Ts'o wrote: ... Whoever you are, Thanks. ... "Computer games don't affect kids; I mean if Pac-Man affected us as kids, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] release_resource() check for NULL resource
      ... >> written defensively and be able to cope with being passed a NULL ... The driver should know the state of such registrations ... kfree() is an exception IMO, ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)