Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320239
b: refs/heads/master
c: 013448c
h: refs/heads/master
i:
  320237: 44609d3
  320235: 9693138
  320231: 83d01bd
  320223: 0d9240a
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jul 17, 2012
1 parent a9e859a commit 6239733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: ec409897e7c71596cc080135ef5f86b81a0e9813
refs/heads/master: 013448c59b8a8cf71a5ff89641f78b620671ccb0
4 changes: 3 additions & 1 deletion trunk/net/sunrpc/auth_gss/gss_mech_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ int gss_mech_list_pseudoflavors(rpc_authflavor_t *array_ptr, int size)
spin_lock(&registered_mechs_lock);
list_for_each_entry(pos, &registered_mechs, gm_list) {
for (j = 0; j < pos->gm_pf_num; j++) {
if (i >= size)
if (i >= size) {
spin_unlock(&registered_mechs_lock);
return -ENOMEM;
}
array_ptr[i++] = pos->gm_pfs[j].pseudoflavor;
}
}
Expand Down

0 comments on commit 6239733

Please sign in to comment.