Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94873111 authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller
Browse files

aoe: error printed 1 too early



with while (i-- > 0); i reaches -1 after the loop, so the test below is printed
one too early: 0 still means success.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9bdcd9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ skbfree(struct sk_buff *skb)
		return;
	while (atomic_read(&skb_shinfo(skb)->dataref) != 1 && i-- > 0)
		msleep(Sms);
	if (i <= 0) {
	if (i < 0) {
		printk(KERN_ERR
			"aoe: %s holds ref: %s\n",
			skb->dev ? skb->dev->name : "netif",