Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: use kzalloc in mptcp_pm_nl_get_local_id
kzalloc() is used instead of kmalloc() to allocate a new address entry in mptcp_pm_nl_get_local_id(), so that the code that sets each field of the entry to zero or NULL can be deleted. If some fields are added or deleted in struct mptcp_pm_addr_entry in the future, this part of the code does not need to be modified. Signed-off-by: Geliang Tang <[email protected]>
- Loading branch information