diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-02-23 10:40:14 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-03-09 14:37:49 -0700 |
commit | eb4af0f5349235df2e4a5057a72fc8962d00308a (patch) | |
tree | 2e794dc71d95c885b6d6a90bf795ba63e9a972d8 /drivers/spi | |
parent | 8f53602be555e500cfcd957955bb40fac19f2a6b (diff) |
spi/doc: spi_master_put must be followed up by kfree
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 5ae1e84d903..c12a9dba2d8 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -830,7 +830,8 @@ static struct class spi_master_class = { * * The caller is responsible for assigning the bus number and initializing * 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) { |