Message ID | 1441493214-12994-1-git-send-email-alexey.klimov@linaro.org |
---|---|
State | New |
Headers | show |
On Sun, Sep 06, 2015 at 01:46:54AM +0300, Alexey Klimov wrote: > From: Guenter Roeck <linux@roeck-us.net> > > Actually, spi_master_put() after spi_alloc_master() must _not_ be followed Please use subject lines matching the style for the subsystem and please don't put noise like RESEND in the subject line, especially if the patch isn't actually being resent. Both these things make it easier to scan incoming mail for relevant and important patches.
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 3abb390..a5f53de 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1610,8 +1610,7 @@ 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() and kfree() to prevent a memory - * leak. + * adding the device) calling spi_master_put() to prevent a memory leak. */ struct spi_master *spi_alloc_master(struct device *dev, unsigned size) {