From 42cdeef6268a2fa28a42e472324c5122410847d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Espeland?= Date: Mon, 23 Apr 2012 13:36:17 +0200 Subject: [PATCH] sigma: Fix segfault when no Sigma present. --- hardware/asix-sigma/asix-sigma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 9e1cd09c..1d5f1610 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -426,7 +426,7 @@ static int hw_init(const char *devinfo) /* Look for SIGMAs. */ if (ftdi_usb_find_all(&ctx->ftdic, &devlist, - USB_VENDOR, USB_PRODUCT) < 0) + USB_VENDOR, USB_PRODUCT) <= 0) goto free; /* Make sure it's a version 1 or 2 SIGMA. */