[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151215.125133.1380311053547267182.davem@davemloft.net>
Date: Tue, 15 Dec 2015 12:51:33 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: isdn@...ux-pingi.de, arnd@...db.de, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch] mISDN: fix a loop count
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Tue, 15 Dec 2015 13:07:52 +0300
> There are two issue here.
> 1) cnt starts as maxloop + 1 so all these loops iterate one more time
> than intended.
> 2) At the end of the loop we test for "if (maxloop && !cnt)" but for
> the first two loops, we end with cnt equal to -1. Changing this to
> a pre-op means we end with cnt set to 0.
>
> Fixes: cae86d4a4e56 ('mISDN: Add driver for Infineon ISDN chipset family')
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied.
--
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