Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/ibmvnic: Fix typo in retry check

This conditional is missing a bang, with the intent
being to break when the retry count reaches zero.

Fixes: 476d96ca9cc5 ("ibmvnic: Bound waits for device queries")
Suggested-by: Juliet Kim <julietk@linux.vnet.ibm.com>
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>

authored by

Thomas Falcon and committed by
Jakub Kicinski
8f9cc1ee 2beb6d29

+1 -1
+1 -1
drivers/net/ethernet/ibm/ibmvnic.c
··· 184 184 netdev_err(netdev, "Device down!\n"); 185 185 return -ENODEV; 186 186 } 187 - if (retry--) 187 + if (!retry--) 188 188 break; 189 189 if (wait_for_completion_timeout(comp_done, div_timeout)) 190 190 return 0;