[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170309.224157.1315315281299916659.davem@davemloft.net>
Date: Thu, 09 Mar 2017 22:41:57 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: andrew@...n.ch
Cc: netdev@...r.kernel.org, f.fainelli@...il.com
Subject: Re: [PATCH net] net: phy: marvell: Fix double free of hwmon device
From: Andrew Lunn <andrew@...n.ch>
Date: Thu, 9 Mar 2017 20:53:31 +0100
> The hwmon temperature sensor devices is registered using a devm_hwmon
> API call. The marvell_release() would then manually free the device,
> not using a devm_hmon API, resulting in the device being removed
> twice, leading to a crash in kernfs_find_ns() during the second
> removal.
>
> Remove the manual removal, which makes marvell_release() empty, so
> remove it as well.
>
> Signed-off-by: Andrew Lunn <andrew@...n.ch>
> Fixes: 0b04680fdae4 ("phy: marvell: Add support for temperature sensor")
Applied, thanks.
Powered by blists - more mailing lists