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
apparmor
integrity
keys
loadpin
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 9.8 KB
Makefile -rw-r--r-- 1.0 KB
commoncap.c -rw-r--r-- 39.1 KB
device_cgroup.c -rw-r--r-- 20.4 KB
inode.c -rw-r--r-- 10.5 KB
lsm_audit.c -rw-r--r-- 10.6 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 44.7 KB

back to top