summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-06-12 20:27:04 +0000
committerPascal Terjan <pterjan@mageia.org>2020-06-12 21:39:54 +0000
commit346a665f193b60858614b3342d5166ca731054e5 (patch)
tree7e1fa89b588278b55cd62c0f33ff1a43c3c0436c
parent7186c327bfaa9b87b28c6d4315169baa61b3496a (diff)
downloaddrakx-346a665f193b60858614b3342d5166ca731054e5.tar
drakx-346a665f193b60858614b3342d5166ca731054e5.tar.gz
drakx-346a665f193b60858614b3342d5166ca731054e5.tar.bz2
drakx-346a665f193b60858614b3342d5166ca731054e5.tar.xz
drakx-346a665f193b60858614b3342d5166ca731054e5.zip
Do not ignore devices lacking capability
-rw-r--r--mdk-stage1/probing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index db99fb56f..32045ec69 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -670,7 +670,7 @@ void find_media(enum media_bus bus)
read_attribute(path, buf);
long caps = strtol(buf, NULL, 16);
- if (!(caps & 0x0010)) {
+ if (caps && !(caps & 0x0010)) {
log_message("Ignoring device %s (not up)", name);
free(name);
continue;