Correct a small typo that breaks logic for insmod path selection.
Fixes: 4c5c45c6beac ("kmodloader: fix invalid write during insmod, CodeQL warnings")
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
- if (!(path = get_module_path(argv[1])) ||
- (path = get_module_path(name))) {
+ if (!((path = get_module_path(argv[1])) ||
+ (path = get_module_path(name)))) {
fprintf(stderr, "Failed to find %s. Maybe it is a built in module ?\n", name);
goto err;
}
fprintf(stderr, "Failed to find %s. Maybe it is a built in module ?\n", name);
goto err;
}