Re: [DVB patch 21/51] ttusb-dec: kfree cleanup

From: Johannes Stezenbach (js_at_linuxtv.org)
Date: 06/28/05

  • Next message: Greg KH: "Re: Question on "embedded" classes"
    Date:	Tue, 28 Jun 2005 01:20:27 +0200
    To: Andrew Morton <akpm@osdl.org>
    
    

    Andrew Morton wrote:
    > Johannes Stezenbach <js@linuxtv.org> wrote:
    > >
    > > From: Adrian Bunk <bunk@stusta.de>
    > >
    > > The Coverity checker discovered that these two kfree's can never be
    > > executed.
    > >
    >
    > That's a bit strange - the code was OK beforehand. It's a bit of a tossup.

    Hm, the comment was a bit misleading, but the kfree(NULL) is a no-op.

    > > /* allocate memory for the internal state */
    > > state = (struct ttusbdecfe_state*) kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL);
    >
    > This typecast is unneeded btw. We tend to avoid casts to and from void*
    > because they defeat typechecking and uglify things.

    I just passed the patch on unchanged. The void-cast cleanup is for
    another patch (the issue is known and we already cleaned up quite
    a lot of them).

    Johannes
    -
    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: Greg KH: "Re: Question on "embedded" classes"

    Relevant Pages

    • Re: [PATCH] pcmcia/ds: handle any error code
      ... This is strange considering ... |> | b) the patch doesn't do anything except report the error. ... |> I'm currently running a kernel built with -Os. ... 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)
    • Re: [RFC PATCH] sched_domains: Make SD_NODE_INIT per-arch
      ... On Thu, 2004-09-30 at 12:23, Andrew Morton wrote: ... of this patch forward. ... include/asm/topology.h to make the arch build. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Next Month/Changes to where to send stuff
      ... Andrew Morton or for small stuff Rusty Russell's trivial patch ... being ignored by the mainstream (because 2.2 is ... I'm not sure what to do about the -ac patch. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6.11-mm3] umount: Scheduling while atomic
      ... On Fri, 18 Mar 2005, Andrew Morton wrote: ... > but that patch got dropped because Linus fixed things differently. ... I just got a similar one when shutting down my box with 2.6.11-mm4, ... 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)
    • Re: Non-GPL export of invalidate_mmap_range
      ... On Tuesday 17 February 2004 19:19, Andrew Morton wrote: ... > I don't see any licensing issues with the patch because the filesystem ... what concerns issues remain with Paul's patch? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)