From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D64F6D0D for ; Fri, 9 Apr 2021 06:33:26 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 4496B610A3; Fri, 9 Apr 2021 06:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617950005; bh=yCdHBrN/kHGVkFYaO/eG0PB/iD92rmwVP1Z0FrCjlzc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ioF3xfMTkks4yEir6PotK2ustLBZKIzKr68uaBkkatl/NyyhvKgtUR0ThK+pk++r2 /RtmzlfVhBRIDX6fJLRyU6rqkMgazLzHJGxkyjsT3YMU5c9Hb2eKz30AsRZrx0N2TE 1DEHL1xdvYH+Isui/ijjhLeCt18iOgq5D8NncP4E= Date: Fri, 9 Apr 2021 08:33:23 +0200 From: Greg KH To: Sergei Krainov Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] staging: rtl8712: fix wrong function output Message-ID: References: <20210408234527.GA6893@test-VirtualBox> X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210408234527.GA6893@test-VirtualBox> On Fri, Apr 09, 2021 at 01:45:27AM +0200, Sergei Krainov wrote: > Function r8712_find_network() were returning wlan_network even if it > didn't match required address. This happened due to not checking if > list end was reached and returning last processed wlan_network. > > Signed-off-by: Sergei Krainov > --- > drivers/staging/rtl8712/rtl871x_mlme.c | 2 ++ > 1 file changed, 2 insertions(+) What commit does this "fix"? Or has this bug been there always? thanks, greg k-h