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 1e1ccf5..af7ffd4 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);
 }