Commit eb4af0f5 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Grant Likely

spi/doc: spi_master_put must be followed up by kfree

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 8f53602b
...@@ -830,7 +830,8 @@ static struct class spi_master_class = { ...@@ -830,7 +830,8 @@ static struct class spi_master_class = {
* *
* The caller is responsible for assigning the bus number and initializing * The caller is responsible for assigning the bus number and initializing
* the master's methods before calling spi_register_master(); and (after errors * the master's methods before calling spi_register_master(); and (after errors
* adding the device) calling spi_master_put() to prevent a memory leak. * adding the device) calling spi_master_put() and kfree() to prevent a memory
* leak.
*/ */
struct spi_master *spi_alloc_master(struct device *dev, unsigned size) struct spi_master *spi_alloc_master(struct device *dev, unsigned size)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment