Subject: Re: [PATCH net-next 4/6] net: trust the bitmap in __dev_alloc_name()

From: Jakub Kicinski <[email-masked]>
Date: Fri, 20 Oct 2023 12:04:36 -0700

On Fri, 20 Oct 2023 12:38:31 +0200 Jiri Pirko wrote:
> >+	if (i == max_netdevices)
> >+		return -ENFILE;  
> 
> Hmm, aren't you changeing functionality here? I mean, prior to this
> patch, the i of value "max_netdevices" was happily used, wan't it?
> In theory it may break things allowing n-1 netdevices of a name instead
> of n.

Good point, I should add that to the commit message.
But we don't care, right? Nobody is asking to increase
the limit, feel like chances that someone will care 
about 32k vs 32k - 1 devices are extremely low.