From 59c279a5f31a3278249b188d35ac3b985c42cc03 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Mon, 30 Nov 2015 11:50:26 +0100 Subject: [PATCH] facetimehd: check command status in fthd_isp_cmd() --- fthd_isp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fthd_isp.c b/fthd_isp.c index 68c5cfe..4c04a5a 100644 --- a/fthd_isp.c +++ b/fthd_isp.c @@ -332,7 +332,7 @@ static int fthd_isp_cmd(struct fthd_private *dev_priv, enum fthd_isp_cmds comman pr_debug("status %04x, request_len %d response len %d address_flags %x\n", cmd.status, request_size, response_size, address); - ret = 0; + ret = cmd.status ? -EIO : 0; out: isp_mem_destroy(request); return ret;