Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Steffen Klassert says: ==================== pull request (net-next): ipsec-next 2018-12-20 Two last patches for this release cycle: 1) Remove an unused variable in xfrm_policy_lookup_bytype(). From YueHaibing. 2) Fix possible infinite loop in __xfrm6_tunnel_alloc_spi(). Also from YueHaibing. Please pull or let me know if there are problems. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -144,6 +144,9 @@ static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
|
||||
index = __xfrm6_tunnel_spi_check(net, spi);
|
||||
if (index >= 0)
|
||||
goto alloc_spi;
|
||||
|
||||
if (spi == XFRM6_TUNNEL_SPI_MAX)
|
||||
break;
|
||||
}
|
||||
for (spi = XFRM6_TUNNEL_SPI_MIN; spi < xfrm6_tn->spi; spi++) {
|
||||
index = __xfrm6_tunnel_spi_check(net, spi);
|
||||
|
Reference in New Issue
Block a user