diff options
Diffstat (limited to 'net/sunrpc/auth_gss/gss_mech_switch.c')
-rw-r--r-- | net/sunrpc/auth_gss/gss_mech_switch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c b/net/sunrpc/auth_gss/gss_mech_switch.c index 27ce26240932..92d5ab99fbf3 100644 --- a/net/sunrpc/auth_gss/gss_mech_switch.c +++ b/net/sunrpc/auth_gss/gss_mech_switch.c | |||
@@ -218,10 +218,8 @@ static struct gss_api_mech *_gss_mech_get_by_pseudoflavor(u32 pseudoflavor) | |||
218 | 218 | ||
219 | spin_lock(®istered_mechs_lock); | 219 | spin_lock(®istered_mechs_lock); |
220 | list_for_each_entry(pos, ®istered_mechs, gm_list) { | 220 | list_for_each_entry(pos, ®istered_mechs, gm_list) { |
221 | if (!mech_supports_pseudoflavor(pos, pseudoflavor)) { | 221 | if (!mech_supports_pseudoflavor(pos, pseudoflavor)) |
222 | module_put(pos->gm_owner); | ||
223 | continue; | 222 | continue; |
224 | } | ||
225 | if (try_module_get(pos->gm_owner)) | 223 | if (try_module_get(pos->gm_owner)) |
226 | gm = pos; | 224 | gm = pos; |
227 | break; | 225 | break; |