summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-07-20 02:51:49 +0400
committerDavid S. Miller <davem@davemloft.net>2011-07-22 01:47:54 +0400
commit1511022c9aabf253253e35730a6a3b945a2a53a9 (patch)
tree28ced3b034d24f45024bf09e2dcfedd932684c81 /tools/perf/scripts/python/sched-migration.py
parent536d1d4a076210f763b60d7c3823f2edbddf3a9c (diff)
downloadlinux-1511022c9aabf253253e35730a6a3b945a2a53a9.tar.xz
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 <error27@gmail.com> Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions