[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1283597729.3402.16.camel@edumazet-laptop>
Date: Sat, 04 Sep 2010 12:55:29 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] UNIX: Do not loop forever at unix_autobind().
Le samedi 04 septembre 2010 à 18:31 +0900, Tetsuo Handa a écrit :
> + cond_resched();
> + /* Give up if all names seems to be in use. */
> + if (retries++ == 0xFFFFF) {
> + err = -ENOMEM;
> + kfree(addr);
> + goto out;
> + }
> goto retry;
> }
> addr->hash ^= sk->sk_type;
Yes, but please use a different error code, its not ENOMEM...
maybe EBUSY or ENOSPC ...
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists