Re: [patch 00/16] timers: Plug debugobject leaks and use del_timer_sync() in exit/teardown
From: Julia Lawall
Date: Mon Mar 24 2014 - 03:30:00 EST
> Another thing I saw is
>
> del_timer(&bla->timer);
> ....
> kfree(&bla);
In one case I saw the following:
if (isac->dch.timer.function != NULL) {
del_timer(&isac->dch.timer);
isac->dch.timer.function = NULL;
}
kfree(isac->mon_rx);
isac->mon_rx = NULL;
Is the assignment isac->dch.timer.function = NULL good enough to solve
the problem?
julia
--
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/