This is a note to let you know that I've just added the patch titled bcma: use (get|put)_device when probing/removing device driver to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: bcma-use-get-put-_device-when-probing-removing-device-driver.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From a971df0b9d04674e325346c17de9a895425ca5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@xxxxxxxxxx> Date: Sat, 28 Jan 2017 14:31:22 +0100 Subject: bcma: use (get|put)_device when probing/removing device driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Rafał Miłecki <rafal@xxxxxxxxxx> commit a971df0b9d04674e325346c17de9a895425ca5e1 upstream. This allows tracking device state and e.g. makes devm work as expected. Signed-off-by: Rafał Miłecki <rafal@xxxxxxxxxx> Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/bcma/main.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -640,8 +640,11 @@ static int bcma_device_probe(struct devi drv); int err = 0; + get_device(dev); if (adrv->probe) err = adrv->probe(core); + if (err) + put_device(dev); return err; } @@ -654,6 +657,7 @@ static int bcma_device_remove(struct dev if (adrv->remove) adrv->remove(core); + put_device(dev); return 0; } Patches currently in stable-queue which might be from rafal@xxxxxxxxxx are queue-4.4/mips-bcm47xx-fix-button-inversion-for-asus-wl-500w.patch queue-4.4/bcma-use-get-put-_device-when-probing-removing-device-driver.patch