OSDN Git Service

spi/doc: spi_master_put must be followed up by kfree
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 23 Feb 2012 09:40:14 +0000 (10:40 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 9 Mar 2012 21:37:49 +0000 (14:37 -0700)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c

index 5ae1e84..c12a9db 100644 (file)
@@ -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)
 {