OSDN Git Service

soc: hab: fix uninitialized variable and relocate vchan refcnt
authorYajun Li <yajunl@codeaurora.org>
Thu, 25 Oct 2018 03:08:25 +0000 (11:08 +0800)
committerYajun Li <yajunl@codeaurora.org>
Tue, 30 Oct 2018 07:54:26 +0000 (15:54 +0800)
commit32782582c33233887604432cebb7538f17b0f174
tree4ca0c4a9481a4192490a9bdc58954cd90115fa78
parentcc0e91494c26bd96fc79ad559e2e2486a0d69c96
soc: hab: fix uninitialized variable and relocate vchan refcnt

Init hab msg pointer to avoid accessing an uninitialized
pointer.

The format specifier "%p" can leak kernel addresses. Use
"%pK" instead.

Check the status of the pfn_table, because of wrong pagetable
coming from the corresponding hab client unexpectedly.

Change-Id: Ic8c6ba0243d27007d014165f2869a5775a96c09d
Signed-off-by: Yajun Li <yajunl@codeaurora.org>
drivers/soc/qcom/hab/hab.c
drivers/soc/qcom/hab/hab.h
drivers/soc/qcom/hab/hab_mem_linux.c
drivers/soc/qcom/hab/hab_mimex.c
drivers/soc/qcom/hab/hab_msg.c
drivers/soc/qcom/hab/hab_stat.c
drivers/soc/qcom/hab/hab_vchan.c