From 0244370be695372a05344ac760d624e0b40ec9ea Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 1 Oct 2010 13:31:45 +0200 Subject: [PATCH] namehint: Fix hw device evaluation (missing last device) Signed-off-by: Jaroslav Kysela --- src/control/namehint.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/control/namehint.c b/src/control/namehint.c index e06d240..ab3525e 100644 --- a/src/control/namehint.c +++ b/src/control/namehint.c @@ -446,7 +446,7 @@ static int add_card(struct hint_list *list, int card) ok++; } ok = 0; - for (device = 0; err >= 0 && device < max_device; device++) { + for (device = 0; err >= 0 && device <= max_device; device++) { list->device = device; err = try_config(list, list->siface, str); if (err < 0) -- 1.7.3.1