mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Initialize pld_soc_info to default values
Some of the members in pld_soc_info structure is not assigned by platform API's. To avoid uninitialized value access by calling function initialize pld_soc_info to default value. Change-Id: I4b6816bf72ebb518b1b8af529763c2f8a8edb38d CRs-Fixed: 2858219
This commit is contained in:
parent
fb53f776c1
commit
0cf7748cf7
1 changed files with 1 additions and 0 deletions
|
|
@ -1472,6 +1472,7 @@ void pld_disable_irq(struct device *dev, unsigned int ce_id)
|
|||
int pld_get_soc_info(struct device *dev, struct pld_soc_info *info)
|
||||
{
|
||||
int ret = 0;
|
||||
memset(info, 0, sizeof(*info));
|
||||
|
||||
switch (pld_get_bus_type(dev)) {
|
||||
case PLD_BUS_TYPE_SNOC:
|
||||
|
|
|
|||
Loading…
Reference in a new issue