Skip to content

Commit 2537c17

Browse files
stoeckmannlucasdemarchi
authored andcommitted
modprobe: return error on timeout
If module cannot be removed in time, return with a failure, not success: Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Link: #377 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
1 parent f71f74e commit 2537c17

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/modprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ static int rmmod_do_remove_module(struct kmod_module *mod)
407407
err = -EAGAIN;
408408
break;
409409
}
410+
err = -EAGAIN;
410411
} else {
411412
break;
412413
}

0 commit comments

Comments
 (0)