diff options
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index cba85d195222..4e0813b12ccf 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -493,6 +493,8 @@ svc_sock_names(char *buf, struct svc_serv *serv, char *toclose) | |||
493 | spin_unlock(&serv->sv_lock); | 493 | spin_unlock(&serv->sv_lock); |
494 | if (closesk) | 494 | if (closesk) |
495 | svc_delete_socket(closesk); | 495 | svc_delete_socket(closesk); |
496 | else if (toclose) | ||
497 | return -ENOENT; | ||
496 | return len; | 498 | return len; |
497 | } | 499 | } |
498 | EXPORT_SYMBOL(svc_sock_names); | 500 | EXPORT_SYMBOL(svc_sock_names); |