OSDN Git Service

Merge branch 'wg-fixes'
authorDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 21:50:34 +0000 (14:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 21:50:34 +0000 (14:50 -0700)
Jason A. Donenfeld says:

====================
wireguard fixes for 5.8-rc3

This series contains two fixes, one cosmetic and one quite important:

1) Avoid the `if ((x = f()) == y)` pattern, from Frank
   Werner-Krippendorf.

2) Mitigate a potential memory leak by creating circular netns
   references, while also making the netns semantics a bit more
   robust.

Patch (2) has a "Fixes:" line and should be backported to stable.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge