mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge "qcacld-3.0: Add proper lengths to payload" into wlan-cld3.driver.lnx.1.1-dev
This commit is contained in:
commit
eb5dc00fd9
2 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ static int wlan_send_sock_msg_to_app(tAniHdr *wmsg, int radio,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
payload_len = wmsg_length + sizeof(wnl->radio);
|
||||
payload_len = wmsg_length + sizeof(wnl->radio) + sizeof(*wmsg);
|
||||
tot_msg_len = NLMSG_SPACE(payload_len);
|
||||
skb = dev_alloc_skb(tot_msg_len);
|
||||
if (skb == NULL) {
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ int ptt_sock_send_msg_to_app(tAniHdr *wmsg, int radio, int src_mod, int pid)
|
|||
__func__, radio);
|
||||
return -EINVAL;
|
||||
}
|
||||
payload_len = wmsg_length + 4; /* 4 extra bytes for the radio idx */
|
||||
payload_len = wmsg_length + sizeof(wnl->radio) + sizeof(*wmsg);
|
||||
tot_msg_len = NLMSG_SPACE(payload_len);
|
||||
skb = dev_alloc_skb(tot_msg_len);
|
||||
if (skb == NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue