/* A '-' followed by the 'name' of a socket means we close the socket.  */
static ssize_t __write_ports_delfd(char *buf)
/* A '-' followed by the 'name' of a socket means we close the socket.  */
static ssize_t __write_ports_delfd(char *buf)
{
	char *toclose;
	int len = 0;
	toclose = kstrdup(buf + 1, GFP_KERNEL);
	if (toclose == NULL)
		return -ENOMEM;
	if (nfsd_serv != NULL)
		len = svc_sock_names(nfsd_serv, buf,
					SIMPLE_TRANSACTION_LIMIT, toclose);
	if (len >= 0)
		lockd_down();
	kfree(toclose);
	return len;
}