]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(intel): null pointer handling for resp_len
authorSieu Mun Tang <sieu.mun.tang@intel.com>
Sat, 19 Feb 2022 13:49:48 +0000 (21:49 +0800)
committerSieu Mun Tang <sieu.mun.tang@intel.com>
Wed, 23 Feb 2022 08:30:30 +0000 (16:30 +0800)
commita250c04b0cc807f626df92a7091ff13b3a3aa9ed
tree40866f7917432c486c172436cf68c65c59394f40
parent7db1895f0be2f8c6710bf51d8441d5e53e3ef0fe
fix(intel): null pointer handling for resp_len

Previous changes from commit #6a659448 updates resp_len from an integer
type to unsigned integer pointer type. This patch adds proper handling
in case resp_len is a null pointer. Resp_len with value 0 are also
changed to NULL to match the type change.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I75b3e3bfbb188d8e7b329ba3b948c23e31dec490
plat/intel/soc/common/include/socfpga_mailbox.h
plat/intel/soc/common/soc/socfpga_mailbox.c
plat/intel/soc/common/socfpga_sip_svc.c