https://github.com/torvalds/linux
Revision b0753408aadf32c7ece9e6b765017881e54af833 authored by Anton Vasilyev on 27 July 2018, 15:57:47 UTC, committed by David S. Miller on 29 July 2018, 02:07:38 UTC
mdio_mux_iproc_probe() uses platform_set_drvdata() to store md pointer
in device, whereas mdio_mux_iproc_remove() restores md pointer by
dev_get_platdata(&pdev->dev). This leads to wrong resources release.

The patch replaces getter to platform_get_drvdata.

Fixes: 98bc865a1ec8 ("net: mdio-mux: Add MDIO mux driver for iProc SoCs")
Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9fc1202
Raw File
Tip revision: b0753408aadf32c7ece9e6b765017881e54af833 authored by Anton Vasilyev on 27 July 2018, 15:57:47 UTC
net: mdio-mux: bcm-iproc: fix wrong getter and setter pair
Tip revision: b075340
COPYING
The Linux Kernel is provided under:

	SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note

Being under the terms of the GNU General Public License version 2 only,
according with:

	LICENSES/preferred/GPL-2.0

With an explicit syscall exception, as stated at:

	LICENSES/exceptions/Linux-syscall-note

In addition, other licenses may also apply. Please see:

	Documentation/process/license-rules.rst

for more details.
back to top