diff options
author | Jason Wang <jasowang@redhat.com> | 2012-05-02 11:41:58 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 10:30:34 -0700 |
commit | 61f26eb401b04a9312c422a5dcc7436246f37b58 (patch) | |
tree | 5cad26e91e232f73b87e02aece440ce2a385c87d /lib/string_helpers.c | |
parent | bfd1678ca0143060686d87ae0c07bebab6f0245b (diff) |
macvtap: zerocopy: put page when fail to get all requested user pages
commit 02ce04bb3d28c3333231f43bca677228dbc686fe upstream.
When get_user_pages_fast() fails to get all requested pages, we could not use
kfree_skb() to free it as it has not been put in the skb fragments. So we need
to call put_page() instead.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions