mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Revert "qcacmn: Use the right index while accessing ipv6 array"
This reverts change-Id I38eb1d3be2840bfbb5fdc9c72606ce. Zero_comp value can be 0 also; so revert the change. Change-Id: I7ab10c20c74d005009f435d483d39e138687a547 CRs-Fixed: 2233854
This commit is contained in:
parent
da1d4517f4
commit
aa6deb6c22
1 changed files with 2 additions and 2 deletions
|
|
@ -512,8 +512,8 @@ QDF_STATUS qdf_ipv6_parse(const char *ipv6_str, struct qdf_ipv6_addr *out_addr)
|
|||
/* shift lower hextets if zero compressed */
|
||||
if (zero_comp >= 0) {
|
||||
uint8_t shift = QDF_IPV6_ADDR_HEXTET_COUNT - hextets_found;
|
||||
void *to = &addr.bytes[((zero_comp - 1) + shift) *2];
|
||||
void *from = &addr.bytes[(zero_comp - 1) *2];
|
||||
void *to = &addr.bytes[(zero_comp + shift) * 2];
|
||||
void *from = &addr.bytes[zero_comp * 2];
|
||||
|
||||
qdf_mem_move(to, from, (hextets_found - zero_comp) * 2);
|
||||
qdf_mem_set(from, shift * 2, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue