]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
svcrpc: fix kfree oops in gss-proxy code
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 31 Jul 2013 18:11:14 +0000 (14:11 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 1 Aug 2013 12:41:29 +0000 (08:41 -0400)
mech_oid.data is an array, not kmalloc()'d memory.

Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_upcall.c

index 1e1ccf539faca398ff69a327bb797c2fb2d1671b..af7ffd447fee2af42a642c3e608536a8459ecbe5 100644 (file)
@@ -328,7 +328,6 @@ void gssp_free_upcall_data(struct gssp_upcall_data *data)
        kfree(data->in_handle.data);
        kfree(data->out_handle.data);
        kfree(data->out_token.data);
-       kfree(data->mech_oid.data);
        free_svc_cred(&data->creds);
 }