Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 176daea8 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

net: qualcomm: rmnet: memset before sending genl response



Ensure that the generic netlink response has a memset payload
before sending to userspace.

Change-Id: Ie2fa92ce80bb3c0716e779cebeaedb2d31d759c1
Acked-by: default avatarRyan Chapman <rchapman@qti.qualcomm.com>
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 286149f5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -319,9 +319,9 @@ int rmnet_core_genl_pid_bps_req_hdlr(struct sk_buff *skb_2,
		rmnet_core_userspace_connected = 1;

	/* Copy to pid/byte list to the payload */
	if (is_req_valid) {
	memset(&pid_bps_resp, 0x0,
	       sizeof(pid_bps_resp));
	if (is_req_valid) {
		rmnet_create_pid_bps_resp(&pid_bps_resp);
	}
	pid_bps_resp.valid = 1;