Re: [PATCH 0/0] Power domain and clock domain patches for omap

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Baryshkov
Date: Tuesday, August 19, 2008 - 2:46 pm

Tony Lindgren wrote:


There is one major flaw IMO in this code. Please correct me if I'm wrong:
Driver A: powerdomain_register()
Driver B: powerdomain_get()
Driver A: powerdomain_unregister()

Then Driver B has a reference to unregistered domain. And as powerdomains
lack any type of refcounting this can lead to any type of memory access
bugs if Driver A is unloaded from the kernel.

-- 
With best wishes
Dmitry


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/0] Power domain and clock domain patches for omap, Dmitry Baryshkov, (Tue Aug 19, 2:46 pm)