[lkml]   [2001]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [CHECKER] free bugs in 2.4.4 and 2.4.4-ac8

> > /u2/engler/mc/oses/linux/2.4.4-ac8/drivers/char/rio/rio_linux.c:1036:rio_init_datastructures: ERROR:FREE:1031:1036: WARN: Use-after-free of "RIOHosts"! set by 'kfree':1031
> > kfree (p->RIOPortp[i]);
> > rio_dprintk (RIO_DEBUG_INIT, "Not enough memory! %p %p %p %p %p\n",
> > Error --->
> > p, p->RIOHosts, p->RIOPortp, rio_termios, rio_termios);
> Not a bug - you need to teach your code that printf has formats that print the
> value of a pointer not dereference it

Take another look. p is potentially bogus here, meaning those p->RIOHosts and
p->RIOPortp references are bad.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:17    [W:0.083 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site