devres: fix devres_get()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 15 Jul 2015 01:29:00 +0000 (10:29 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:00:09 +0000 (10:00 -0700)
commitdb4d79952cd299d81fdb1a87ef363d77df5976a5
treed081dc5a49fabd4507a0b35bb7f64f885f415677
parent0bd183de611348459ef08b1e893dad005d8880f6
devres: fix devres_get()

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.

Fixes: 9ac7849e35f7 ("devres: device resource management")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devres.c