[PATCH] technology: fix technology refcounting
sameo at linux.intel.com
Fri Feb 24 14:25:23 PST 2012
On Wed, Feb 22, 2012 at 04:19:13PM +0200, Alok Barsode wrote:
> From: Alok Barsode <alok.barsode at linux.intel.com>
> __sync_fetch_and_sub() gives the value that had previously been in memory
> which gives the older refount.
> technology_find() does not refcount the technology.
> __connman_technology_update_rfkill() was using technology_get() which
> was refcounting the technology. Every technology_get() must be matched
> with a corresponding technology_put() for accurate refcounting.
Technically 2 patches would have been better, but I applied this one anyway.
Intel Open Source Technology Centre
More information about the connman