[PATCH] vpn: Reference of provider not taken

Samuel Ortiz sameo at linux.intel.com
Fri Feb 3 15:49:23 PST 2012


Hi Jukka,

On Fri, Feb 03, 2012 at 01:31:28PM +0200, Jukka Rissanen wrote:
> VPN plugin hooks itself into rtnl newlink watch and gives
> provider pointer as user data. We must take reference of the
> user data pointer as otherwise we might access invalid pointer
> if provider is already removed when rtnl watch is triggered.
> This seems to be a rare issue but I had one valgrind crash
> because of this.
Looks good, I applied this one.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/



More information about the connman mailing list