Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07a389fe authored by Roman Tereshonkov's avatar Roman Tereshonkov Committed by Grant Likely
Browse files

spi: spi_device memory should be released instead of device.



The memory for dev variable is allocated as a part of
spi_device structure memory which the dev belongs to.
Thus when the memory is released the right pointer is used.

Signed-off-by: default avatarRoman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 8ec130a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -41,7 +41,7 @@ static void spidev_release(struct device *dev)
		spi->master->cleanup(spi);
		spi->master->cleanup(spi);


	spi_master_put(spi->master);
	spi_master_put(spi->master);
	kfree(dev);
	kfree(spi);
}
}


static ssize_t
static ssize_t