qcacld-3.0: Use qdf_mem_zero for zero initialization
Use qdf_mem_zero for zero initialization. Change-Id: Ic2b8d907623cf67a4569aaf01398c1b3a2bff707 CRs-Fixed: 2376644
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -830,7 +830,7 @@ static QDF_STATUS p2p_packet_alloc(uint16_t size, void **data,
|
||||
qdf_nbuf_set_protocol(nbuf, ETH_P_CONTROL);
|
||||
*ppPacket = nbuf;
|
||||
*data = qdf_nbuf_data(nbuf);
|
||||
qdf_mem_set(*data, size, 0);
|
||||
qdf_mem_zero(*data, size);
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user