defect: fix code defects in public parts
authorJianxiong Pan <jianxiong.pan@amlogic.com>
Thu, 5 Jul 2018 09:17:02 +0000 (17:17 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 20 Jul 2018 09:58:58 +0000 (02:58 -0700)
commit050b1cce5d1d9c1eddaa5518f9748cab3eddf0fc
treee8f723fc56dc99d7008615d32472348f782de4d5
parentf66e7afdf8fa2edbfe5cdb64170723055b3b97bb
defect: fix code defects in public parts

PD#166793: code defects in public parts

crypto: exclude the of_match_device function return value is NULL
ddr_tool: solve problems of bad_shift and use_after_free
debug: prevent the number of cpus from exceeding the total
efuse: solve the problem of buffer_size_warning
memory_ext: solve the problems of divide_by_zero and overrun
unifykey: solve the problem of buffer_size_warning,and add a variable
          for useless_call
wifi: exclude the of_match_node function return value is NULL,and avoid
   the problem of string_overflow

Change-Id: I099ce7c60ddd0266d067215108f0e2baeb31c234
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
drivers/amlogic/bluetooth/bt_device.c
drivers/amlogic/crypto/aml-dma.c
drivers/amlogic/ddr_tool/ddr_band_op_gxl.c
drivers/amlogic/ddr_tool/ddr_bandwidth.c
drivers/amlogic/efuse/efuse64.c
drivers/amlogic/memory_ext/page_trace.c
drivers/amlogic/unifykey/storagekey.c
drivers/amlogic/unifykey/unifykey.c
drivers/amlogic/wifi/wifi_dt.c