Re: [CHECKER] 120 potential dereference to invalid pointers errors for linux 2.4.1

From: Andy Chou (acc@CS.Stanford.EDU)
Date: Sat Mar 17 2001 - 14:02:15 EST


> > [BUG] fore200e_kmalloc can return NULL
> > /u2/acc/oses/linux/2.4.1/drivers/atm/fore200e.c:2032:fore200e_get_esi: ERROR:NULL:2020:2032: Using unknown ptr "prom" illegally! set by 'fore200e_kmalloc':2020
>
> I don't see the bug - there is an explicit "if(!prom) return -ENOMEM;" after
> the allocation. It looks fine to me.

We checked 2.4.1; it appears that by 2.4.2 someone had already fixed it :)

-Andy
-
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/



This archive was generated by hypermail 2b29 : Fri Mar 23 2001 - 21:00:10 EST