Patch "devres: fix devres_get()" has been added to the 3.10-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
devres: fix devres_get()
to the 3.10-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:
devres-fix-devres_get.patch
and it can be found in the queue-3.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
64526370d11ce8868ca495723d595b61e8697fbfMon Sep 17 00:00:00 2001
From: Masahiro Yamada <[email protected]>
Date: Wed, 15 Jul 2015 10:29:00 +0900
Subject: devres: fix devres_get()
From: Masahiro Yamada <[email protected]>
commit 64526370d11ce8868ca495723d595b61e8697fbf upstream.
Currently, devres_get() passes devres_free() the pointer to devres, but devres_free() should be given with the pointer to resource data.
--- drivers/base/devres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/base/devres.c +2 -2
@@ -296,10 +296,10 @@ void * devres_get(struct device *dev, voif (!dr) {add_dr (dev, &new_dr->node); dr = new_dr; - new_dr =NULL ; + new_res =NULL ; }spin_unlock_irqrestore (&dev->devres_lock, flags); -devres_free (new_dr); +devres_free (new_res);return dr->data; }
Patches currently in stable-queue which might be from [email protected] are
queue-3.10/devres-fix-devres_get.patch