diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-02-05 15:32:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-28 17:22:26 +0100 |
commit | 125b4a5345e2c4c51b373f984d9e1842bab4b930 (patch) | |
tree | f1baacadae07dbe229825d548a94bead41c249b3 /kernel | |
parent | 2ca19dfafc04f33bfeaacad89590ce028fffba7b (diff) |
staging: greybus: use after free in gb_audio_manager_remove_all()
commit b7db58105b80fa9232719c8329b995b3addfab55 upstream.
When we call kobject_put() and it's the last reference to the kobject
then it calls gb_audio_module_release() and frees module. We dereference
"module" on the next line which is a use after free.
Fixes: c77f85bbc91a ("greybus: audio: Fix incorrect counting of 'ida'")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Link: https://lore.kernel.org/r/20200205123217.jreendkyxulqsool@kili.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions