Repository navigation
Commit e773aaf
l2tp: fix memory allocation
Since .size is set properly in "struct pernet_operations l2tp_net_ops",
allocating space for "struct l2tp_net" by hand is not correct, even causes
memory leakage.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 3b51cc9 commit e773aaf
1 file changed
Lines changed: 1 addition & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1617 | 1617 | | |
1618 | 1618 | | |
1619 | 1619 | | |
1620 | | - | |
1621 | | - | |
| 1620 | + | |
1622 | 1621 | | |
1623 | 1622 | | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
1628 | 1623 | | |
1629 | 1624 | | |
1630 | 1625 | | |
| |||
1633 | 1628 | | |
1634 | 1629 | | |
1635 | 1630 | | |
1636 | | - | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | 1631 | | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | 1632 | | |
1659 | 1633 | | |
1660 | 1634 | | |
1661 | 1635 | | |
1662 | | - | |
1663 | 1636 | | |
1664 | 1637 | | |
1665 | 1638 | | |
| |||
0 commit comments