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
History
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
File Mode Size
Kconfig -rw-r--r-- 61.5 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 14.6 KB
do_mounts.h -rw-r--r-- 1.1 KB
do_mounts_initrd.c -rw-r--r-- 3.5 KB
do_mounts_md.c -rw-r--r-- 8.2 KB
do_mounts_rd.c -rw-r--r-- 8.4 KB
init_task.c -rw-r--r-- 5.1 KB
initramfs.c -rw-r--r-- 14.1 KB
main.c -rw-r--r-- 28.4 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.2 KB

back to top