https://github.com/torvalds/linux
Revision a1459c1c9ebcd72f3d488fd10673e64b2bfcbd27 authored by Mark Brown on 20 April 2016, 11:54:05 UTC, committed by David S. Miller on 21 April 2016, 19:00:27 UTC
The ks8895 driver is using spi_dev_get() apparently just to take a copy
of the SPI device used to instantiate it but never calls spi_dev_put()
to free it.  Since the device is guaranteed to exist between probe() and
remove() there should be no need for the driver to take an extra
reference to it so fix the leak by just using a straight assignment.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 210990b
History
Tip revision: a1459c1c9ebcd72f3d488fd10673e64b2bfcbd27 authored by Mark Brown on 20 April 2016, 11:54:05 UTC
net: phy: spi_ks8895: Don't leak references to SPI devices
Tip revision: a1459c1
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 344.2 KB
Makefile -rw-r--r-- 55.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top