diff options
author | Dan Carpenter <[email protected]> | 2011-07-19 22:51:49 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2011-07-21 14:47:54 -0700 |
commit | 1511022c9aabf253253e35730a6a3b945a2a53a9 (patch) | |
tree | 28ced3b034d24f45024bf09e2dcfedd932684c81 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 536d1d4a076210f763b60d7c3823f2edbddf3a9c (diff) |
skbuff: fix error handling in pskb_copy()
There are two problems:
1) "n" was allocated with alloc_skb() so we should free it with
kfree_skb() instead of regular kfree().
2) We return the freed pointer instead of NULL.
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions