OSDN Git Service

soc: qcom: hab: fix some NULL pointer dereference issues
authorYong Ding <yongding@codeaurora.org>
Tue, 17 Jul 2018 08:36:43 +0000 (16:36 +0800)
committerYong Ding <yongding@codeaurora.org>
Fri, 3 Aug 2018 07:10:47 +0000 (15:10 +0800)
commit949999a18dad3b599da84995638765c4e3dfb7d7
treee28b2265fe6cbe73d29f70ead373a96ca4f59225
parentd54a5ed7e553a27fa746121c8846e43ea657976e
soc: qcom: hab: fix some NULL pointer dereference issues

With this patch, some potential NULL pointer dereference
issues are resolved. For example, if an invalid MMID
(MultiMedia ID defined by HAB driver) is gotten but we
fail to directly return with an error, the vchan variable
as NULL pointer will be dereferenced.

Change-Id: I92f9c5d08f99ef9db3e6a8b2ecdc0f074c8e8bff
Signed-off-by: Yong Ding <yongding@codeaurora.org>
drivers/soc/qcom/hab/hab.c
drivers/soc/qcom/hab/qvm_comm.c