Re: [PATCH 2/5] oprofile: Fix crash when unloading module (hr timer

Ingo Molnar
2011-10-18T06:14:13Z

* Robert Richter <robert.richter@amd.com> wrote:

> + /* failed */
> + if (timer_mode)
> + oprofile_timer_exit();
> + else
> + oprofile_arch_exit();

> - oprofile_arch_exit();
> + if (timer_mode)
> + oprofile_timer_exit();
> + else
> + oprofile_arch_exit();

That's rather ugly ...

Thanks,

Ingo