Re: [KJ] [PATCH] Correct misc_register return code handling in several drivers

Dan Carpenter
2006-10-23T18:01:40Z

On 10/23/06, Neil Horman <nhorman@tuxdriver.com> wrote:
> +out3:
> + for_each_online_node(node) {
> + if(timers[node] != NULL)
> + kfree(timers[node]);
> + }

Tharindu is going to be unhappy out if he sees that. There is a
possibility that timers[node] is uninitialized. if node[0] is null
then node[1] is uninitialized and it's going to cause a crash.

regards,
dan carpenter