]> xenbits.xensource.com Git - seabios.git/commit
nvme: fix reversed loop condition in cmd_readwrite
authorDaniel Verkamp <daniel@drv.nu>
Fri, 24 Feb 2017 06:27:55 +0000 (23:27 -0700)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 2 Mar 2017 14:46:45 +0000 (09:46 -0500)
commit2e82b465fbdb46efdc2ebb638aef17fa7f665dc5
tree1a8811f4e3104984bacd7af68e1a3660f4cc9a67
parent21de72ffe8dcddf126c136918951c441edf85929
nvme: fix reversed loop condition in cmd_readwrite

It looks like the intent was to exit the loop if a command failed, but
the current code would actually continue looping in that case.

Signed-off-by: Daniel Verkamp <daniel@drv.nu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
src/hw/nvme.c