diff options
Diffstat (limited to 'src/kernel/sysfs.c')
-rw-r--r-- | src/kernel/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/sysfs.c b/src/kernel/sysfs.c index 490ffbd..bd23845 100644 --- a/src/kernel/sysfs.c +++ b/src/kernel/sysfs.c @@ -42,7 +42,7 @@ ssize_t show_initial_server_addr(char *buf, struct dnbd3_device *dev) ssize_t show_connected_servers(char *buf, struct dnbd3_device *dev) { int i, size = PAGE_SIZE, ret; - for (i = 0; i < NUMBER_CONNECTIONS; ++i) { + for (i = 0; i < dev->number_connections; ++i) { if (dev->socks[i].sock) { if (dev->socks[i].server->host.type == HOST_IP4) { ret = MIN(snprintf(buf, size, "%pI4,%d,%llu,%d\n", |