diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2020-09-03 08:05:58 +0800 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-09-15 03:43:24 +0000 |
commit | 231331b2dbd71487159a0400d9ffd967eb0d0e08 (patch) | |
tree | 9e4c301e2904354a19adb9e9ac659af32ba9accf /scripts/gen_compile_commands.py | |
parent | e69ee0cf655e8e0c4a80f4319e36019b74f17639 (diff) |
rpmsg: Avoid double-free in mtk_rpmsg_register_device
If rpmsg_register_device fails, it will call
mtk_rpmsg_release_device which already frees mdev.
Fixes: 7017996951fd ("rpmsg: add rpmsg support for mt8183 SCP.")
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200903080547.v3.1.I56cf27cd59f4013bd074dc622c8b8248b034a4cc@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions