Skip to content

Commit

Permalink
/sys/class/infiniband_verbs/uverbs0 is a directory
Browse files Browse the repository at this point in the history
[ Upstream commit 433425c ]

According to the ABI doc this item supposed to have
sub elements (yes they does) [1]

[1] https://www.kernel.org/doc/Documentation/ABI/stable/sysfs-class-infiniband

Fixes: 39fa824 ("redhat: add udev/systemd/etc infrastructure bits")
Signed-off-by: afazekas <afazekas@redhat.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
afazekas authored and nmorey committed Sep 26, 2023
1 parent 17bae9c commit f213b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redhat/rdma.modules-setup.sh
@@ -1,7 +1,7 @@
#!/bin/bash

check() {
[ -n "$hostonly" -a -c /sys/class/infiniband_verbs/uverbs0 ] && return 0
[ -n "$hostonly" -a -d /sys/class/infiniband_verbs/uverbs0 ] && return 0
[ -n "$hostonly" ] && return 255
return 0
}
Expand Down

0 comments on commit f213b42

Please sign in to comment.