diff options
| author | Uwe Kleine-König <[email protected]> | 2012-02-23 09:40:14 +0000 |
|---|---|---|
| committer | Grant Likely <[email protected]> | 2012-03-09 21:37:49 +0000 |
| commit | eb4af0f5349235df2e4a5057a72fc8962d00308a (patch) | |
| tree | 2e794dc71d95c885b6d6a90bf795ba63e9a972d8 /drivers/spi/spi.c | |
| parent | spi: Trivial warning fix (diff) | |
| download | kernel-eb4af0f5349235df2e4a5057a72fc8962d00308a.tar.gz kernel-eb4af0f5349235df2e4a5057a72fc8962d00308a.zip | |
spi/doc: spi_master_put must be followed up by kfree
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'drivers/spi/spi.c')
| -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 5ae1e84d9037..c12a9dba2d82 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) { |
