From 349320f6e1fc826dda96f0941ce26e8bca8976a2 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Fri, 25 Nov 2022 16:21:55 +0000 Subject: [PATCH] iiod: Fix use of uninitialized variable A iio_err() check was performed on the wrong variable. Signed-off-by: Paul Cercueil --- iiod/responder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iiod/responder.c b/iiod/responder.c index 3b9c2bca3..caddb927d 100644 --- a/iiod/responder.c +++ b/iiod/responder.c @@ -750,7 +750,7 @@ static void handle_transfer_block(struct parser_pdata *pdata, int ret; buf = get_iio_buffer(pdata, cmd, &entry); - ret = iio_err(block); + ret = iio_err(buf); if (ret) goto out_send_response;