Re: p = kmalloc(sizeof(*p), )

From: Al Viro (viro_at_ftp.linux.org.uk)
Date: 09/18/05

  • Next message: Randy.Dunlap: "Re: p = kmalloc(sizeof(*p), )"
    Date:	Sun, 18 Sep 2005 18:30:58 +0100
    To: Denis Vlasenko <vda@ilport.com.ua>
    
    

    On Sun, Sep 18, 2005 at 07:25:24PM +0300, Denis Vlasenko wrote:
    > Do these qualify?
    >
    > http://www.uwsg.iu.edu/hypermail/linux/kernel/0105.1/0579.html
    > o Fix wrong kmalloc sizes in ixj/emu10k1 (David Chan)

    ixj does, emu10k does not (sizeof(p) instead of sizeof(*p) would be
    exact same bug).
     
    > http://www.mail-archive.com/alsa-cvslog@lists.sourceforge.net/msg02483.html
    > Update of /cvsroot/alsa/alsa-kernel/isa
    > In directory sc8-pr-cvs1:/tmp/cvs-serv4034
    >
    > Modified Files:
    > es18xx.c cmi8330.c
    > Log Message:
    > Fixed wrong kmalloc

    Nope. Wrong order of arguments in kmalloc; nothing to do with what we
    intend to pass as size.
    -
    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: Randy.Dunlap: "Re: p = kmalloc(sizeof(*p), )"

    Relevant Pages