summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/input.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2017-03-09 20:53:31 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-09 22:41:03 -0800
commit296739839fa2851e6badc77dcfc45050094cb102 (patch)
tree5184588169aac5e98fdb40096d79611e2295f7de /net/rxrpc/input.c
parentb3b8812e66511b7da3c4fed140da5f751c38cd7a (diff)
downloadblackbird-op-linux-296739839fa2851e6badc77dcfc45050094cb102.tar.gz
blackbird-op-linux-296739839fa2851e6badc77dcfc45050094cb102.zip
net: phy: marvell: Fix double free of hwmon device
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@lunn.ch> Fixes: 0b04680fdae4 ("phy: marvell: Add support for temperature sensor") Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/input.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud