Commit 42ca0203 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

net/netlabel: copy and paste bug in netlbl_cfg_unlbl_map_add()

This was copy and pasted from the IPv4 code.  We're calling the
ip4 version of that function and map4 is NULL.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac8a4810
...@@ -162,8 +162,8 @@ int netlbl_cfg_unlbl_map_add(const char *domain, ...@@ -162,8 +162,8 @@ int netlbl_cfg_unlbl_map_add(const char *domain,
map6->list.addr.s6_addr32[3] &= mask6->s6_addr32[3]; map6->list.addr.s6_addr32[3] &= mask6->s6_addr32[3];
ipv6_addr_copy(&map6->list.mask, mask6); ipv6_addr_copy(&map6->list.mask, mask6);
map6->list.valid = 1; map6->list.valid = 1;
ret_val = netlbl_af4list_add(&map4->list, ret_val = netlbl_af6list_add(&map6->list,
&addrmap->list4); &addrmap->list6);
if (ret_val != 0) if (ret_val != 0)
goto cfg_unlbl_map_add_failure; goto cfg_unlbl_map_add_failure;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment