aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/xen-netback/netback.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2013-09-11 18:09:48 +0800
committerDavid S. Miller <[email protected]>2013-09-12 17:21:42 -0400
commit662ca437e714caaab855b12415d6ffd815985bc0 (patch)
treec8b6eccc605fe52837e21d72bdecbf8e0c71b539 /drivers/net/xen-netback/netback.c
parenta9677bc024dcaafcf36c1cc4b0706b87be26ee5f (diff)
tuntap: correctly handle error in tun_set_iff()
Commit c8d68e6be1c3b242f1c598595830890b65cea64a (tuntap: multiqueue support) only call free_netdev() on error in tun_set_iff(). This causes several issues: - memory of tun security were leaked - use after free since the flow gc timer was not deleted and the tfile were not detached This patch solves the above issues. Reported-by: Wannes Rombouts <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Signed-off-by: Jason Wang <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/netback.c')
0 files changed, 0 insertions, 0 deletions