Merge "msm: ipa3: Fix to reset TX/RX prop with correct size"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
4cb0ccedfb
@@ -254,7 +254,7 @@ int ipa_wdi_reg_intf(struct ipa_wdi_reg_intf_in_params *in)
|
||||
goto fail_commit_hdr;
|
||||
}
|
||||
tx.num_props = 2;
|
||||
memset(tx_prop, 0, sizeof(*tx_prop));
|
||||
memset(tx_prop, 0, sizeof(*tx_prop) * IPA_TX_MAX_INTF_PROP);
|
||||
tx.prop = tx_prop;
|
||||
|
||||
tx_prop[0].ip = IPA_IP_v4;
|
||||
@@ -286,7 +286,7 @@ int ipa_wdi_reg_intf(struct ipa_wdi_reg_intf_in_params *in)
|
||||
goto fail_commit_hdr;
|
||||
}
|
||||
rx.num_props = 2;
|
||||
memset(rx_prop, 0, sizeof(*rx_prop));
|
||||
memset(rx_prop, 0, sizeof(*rx_prop) * IPA_RX_MAX_INTF_PROP);
|
||||
rx.prop = rx_prop;
|
||||
rx_prop[0].ip = IPA_IP_v4;
|
||||
if (!ipa3_ctx->ipa_wdi3_over_gsi)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/fs.h>
|
||||
@@ -114,6 +114,7 @@ int ipa3_register_intf_ext(const char *name, const struct ipa_tx_intf *tx,
|
||||
kfree(intf);
|
||||
return -ENOMEM;
|
||||
}
|
||||
memcpy(intf->tx, tx->prop, len);
|
||||
}
|
||||
|
||||
if (rx) {
|
||||
|
||||
Reference in New Issue
Block a user