All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] main: Fix a logical error within parse_config_int()
@ 2023-07-31  7:46 Zijun Hu
  2023-07-31  8:48 ` Paul Menzel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Zijun Hu @ 2023-07-31  7:46 UTC (permalink / raw)
  To: luiz.dentz; +Cc: linux-bluetooth, quic_zijuhu

Fix a logical error within parse_config_int().
---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index 150a5af4cca4..13501440b052 100644
--- a/src/main.c
+++ b/src/main.c
@@ -458,7 +458,7 @@ static bool parse_config_int(GKeyFile *config, const char *group,
 		return false;
 	}
 
-	if (tmp < max) {
+	if (tmp > max) {
 		warn("%s.%s = %d is out of range (> %d)", group, key, tmp, max);
 		return false;
 	}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-31 17:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31  7:46 [PATCH v1] main: Fix a logical error within parse_config_int() Zijun Hu
2023-07-31  8:48 ` Paul Menzel
2023-07-31  8:58   ` quic_zijuhu
2023-07-31  9:16 ` [v1] " bluez.test.bot
2023-07-31  9:28 ` [PATCH BlueZ v2] main: Fix integer configuration option parse failures Zijun Hu
2023-07-31 10:46   ` [BlueZ,v2] " bluez.test.bot
2023-07-31 17:50   ` [PATCH BlueZ v2] " patchwork-bot+bluetooth
2023-07-31 17:50 ` [PATCH v1] main: Fix a logical error within parse_config_int() patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.