mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
8f53602be5
commit
eb4af0f534
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue