> 0, of course

non-odp-rdma
Vitaliy Filippov 2022-01-24 13:36:09 +03:00
parent c1929cabe0
commit 218e294e9c
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ protected:
goto end_unmap; goto end_unmap;
} }
ioctl(nbd, NBD_SET_FLAGS, flags); ioctl(nbd, NBD_SET_FLAGS, flags);
if (timeout >= 0) if (timeout > 0)
{ {
r = ioctl(nbd, NBD_SET_TIMEOUT, (unsigned long)timeout); r = ioctl(nbd, NBD_SET_TIMEOUT, (unsigned long)timeout);
if (r < 0) if (r < 0)