Re: [PATCH net v2] ice: Add check for kzalloc

From: Jiasheng Jiang <hidden>
Date: 2022-12-08 12:52:40
Also in: intel-wired-lan, lkml

On Thu, Dec 08, 2022 at 07:17:59PM +0800, Leon Romanovsky wrote:
quoted
quoted
quoted
+err_out:
+	for (j = 0; j < i; j++) {
You don't need an extra variable, "while(i--)" will do the trick.
No, the right range is [0, i - 1], but the "while(i--)" is [1, i].
Are you sure??
Yes, you are right.
I will submit a v3 to add this change.

Thanks,
Jiang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help