drivers/base dmam_declare_coherent_memory leaks
authorVyacheslav V. Yurkov <uvv.mail@gmail.com>
Tue, 14 Jun 2016 07:58:37 +0000 (09:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 13:19:55 +0000 (15:19 +0200)
commit775115c06091fcfa1189a50aca488fa596839617
tree597917c12f59b657ed1ae8ccc0f612334ea1eccf
parente330b9a6bb35dc7097a4f02cb1ae7b6f96df92af
drivers/base dmam_declare_coherent_memory leaks

dmam_declare_coherent_memory doesn't take into account the return
value of dma_declare_coherent_memory, which leads to incorrect resource
handling

Signed-off-by: Vyacheslav V. Yurkov <uvv.mail@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dma-mapping.c