[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YoNzlPyQEXBk2k4/@kroah.com>
Date: Tue, 17 May 2022 12:06:12 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Yuanjun Gong <ruc_gongyuanjun@....com>
Cc: Larry Finger <Larry.Finger@...inger.net>,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH 1/1] staging: fix a potential infinite loop
On Tue, May 17, 2022 at 05:58:09PM +0800, Yuanjun Gong wrote:
> From: Gong Yuanjun <ruc_gongyuanjun@....com>
>
> In the for-loop in _rtl92e_update_rxcounts(),
> i is a u8 counter while priv->rtllib->LinkDetectInfo.SlotNum is
> a u16 num, there is a potential infinite loop if SlotNum is larger
> than u8_max.
can SlotNum ever get larger than that? If not, then why not just change
that type instead?
And you forgot to list the driver name in the subject line and cc: all
the right people that scripts/get_maintainer.pl will tell you to cc:
Please fix that up and resend a v2.
thanks,
greg k-h
Powered by blists - more mailing lists