From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> --- tools/csr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/csr.c b/tools/csr.c index b4ea1fb..36af921 100644 --- a/tools/csr.c +++ b/tools/csr.c @@ -2750,10 +2750,12 @@ static int parse_line(char *str) char *off, *end; pskey = strtol(str + 1, NULL, 16); - off = strstr(str, "=") + 1; + off = strstr(str, "="); if (!off) return -EIO; + off++; + while (1) { value = strtol(off, &end, 16); if (value == 0 && off == end) -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html