slight error in slram.c

Russ Dill Russ.Dill at asu.edu
Thu Feb 15 15:02:03 EST 2001


I was looking through slram.c for some example code ($Id: slram.c,v 1.10
2000/07/03 10:01:38 dwmw2 Exp $), and found a slight typo/error in
init_slram

        mymtd = kmalloc(sizeof(struct mtd_info), GFP_KERNEL);
        
        memset(mymtd, 0, sizeof(*mymtd));
        
        if (mymtd)
        {
                memset((char *)mymtd, 0, sizeof(struct mtd_info));


Just a little thing, but hey, it might matter to someone, someday



To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list