Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63829
b: refs/heads/master
c: a4deb81
h: refs/heads/master
i:
  63827: 031039f
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Aug 7, 2007
1 parent 3829bc2 commit 4332ac6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 905f8d16e32fd48499e3f8b9a2d9f746af3e0949
refs/heads/master: a4deb81ba8ece75af5560d40d9bb8d242c48a111
9 changes: 6 additions & 3 deletions trunk/net/sunrpc/auth_gss/auth_gss.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,6 @@ gss_do_free_ctx(struct gss_cl_ctx *ctx)
{
dprintk("RPC: gss_free_ctx\n");

if (ctx->gc_gss_ctx)
gss_delete_sec_context(&ctx->gc_gss_ctx);

kfree(ctx->gc_wire_ctx.data);
kfree(ctx);
}
Expand All @@ -753,7 +750,13 @@ gss_free_ctx_callback(struct rcu_head *head)
static void
gss_free_ctx(struct gss_cl_ctx *ctx)
{
struct gss_ctx *gc_gss_ctx;

gc_gss_ctx = rcu_dereference(ctx->gc_gss_ctx);
rcu_assign_pointer(ctx->gc_gss_ctx, NULL);
call_rcu(&ctx->gc_rcu, gss_free_ctx_callback);
if (gc_gss_ctx)
gss_delete_sec_context(&gc_gss_ctx);
}

static void
Expand Down

0 comments on commit 4332ac6

Please sign in to comment.