diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-18 19:30:50 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-20 14:52:17 -0500 |
commit | f8a0a781488ec7288d1049e5d2022850aa98f7b6 (patch) | |
tree | 3acab2f7a781ce3ed83bcd5350ac14b133dc0e45 /lib | |
parent | 4cd06a344db752f513437138953af191cbe9a691 (diff) | |
download | linux-3.10-f8a0a781488ec7288d1049e5d2022850aa98f7b6.tar.gz linux-3.10-f8a0a781488ec7288d1049e5d2022850aa98f7b6.tar.bz2 linux-3.10-f8a0a781488ec7288d1049e5d2022850aa98f7b6.zip |
mac80211: fix potentially redundant skb data copying
When an skb is shared, it needs to be duplicated, along with its data buffer.
If the skb does not have enough headroom, using skb_copy might cause the data
buffer to be copied twice (once by skb_copy and once by pskb_expand_head).
Fix this by using skb_clone initially and letting ieee80211_skb_resize sort
out the rest.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions