Re: [RFC PATCH 1/3] Add ability to keep track of callers ofsymbol_(get|put)

From: Rusty Russell
Date: Mon Mar 12 2007 - 18:14:33 EST


Hi Trent,

Patch looks good, just one comment:

On Mon, 2007-03-12 at 07:07 -0700, Trent Piepho wrote:
> + use = already_uses(a, b);
> + if (!use) {
> + printk(KERN_ERR "module %s trying to un-use a module, %s, which "
> + "it is not using", a->name, b->name);
> + return 0;
> + }

s/return 0/BUG()/. This is potentially quite a nasty bug.

Thanks!
Rusty.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/