diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2017-03-18 00:07:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-22 01:50:20 +0100 |
commit | 3dc857f0e8fc22610a59cbb346ba62c6e921863f (patch) | |
tree | 2ac3b4c99e619b8c31f50fd368bd891e646fff97 /fs | |
parent | bna: integer overflow bug in debugfs (diff) | |
download | linux-3dc857f0e8fc22610a59cbb346ba62c6e921863f.tar.xz linux-3dc857f0e8fc22610a59cbb346ba62c6e921863f.zip |
net: vrf: Reset rt6i_idev in local dst after put
The VRF driver takes a reference to the inet6_dev on the VRF device for
its rt6_local dst when handling local traffic through the VRF device as
a loopback. When the device is deleted the driver does a put on the idev
but does not reset rt6i_idev in the rt6_info struct. When the dst is
destroyed, dst_destroy calls ip6_dst_destroy which does a second put for
what is essentially the same reference causing it to be prematurely freed.
Reset rt6i_idev after the put in the vrf driver.
Fixes: b4869aa2f881e ("net: vrf: ipv6 support for local traffic to
local addresses")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions