summaryrefslogtreecommitdiff
path: root/net/atm
diff options
context:
space:
mode:
authorRoss Lagerwall <ross.lagerwall@citrix.com>2015-08-03 14:38:03 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-08-04 05:23:03 (GMT)
commit2475b22526d70234ecfe4a1ff88aed69badefba9 (patch)
treec5b99bd44f94a5e6094869c8da1f0683e0777a02 /net/atm
parent10e2eb878f3ca07ac2f05fa5ca5e6c4c9174a27a (diff)
downloadlinux-2475b22526d70234ecfe4a1ff88aed69badefba9.tar.xz
xen-netback: Allocate fraglist early to avoid complex rollback
Determine if a fraglist is needed in the tx path, and allocate it if necessary before setting up the copy and map operations. Otherwise, undoing the copy and map operations is tricky. This fixes a use-after-free: if allocating the fraglist failed, the copy and map operations that had been set up were still executed, writing over the data area of a freed skb. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions