[alsa-devel] [PATCH 2/4] soundwire: cdns: fix check for number of messages
Srinivas Kandagatla
srinivas.kandagatla at linaro.org
Thu Mar 28 14:41:32 CET 2019
Looks like there is a typo while checking number of messages, which
should be checked in defer pointer rather than message length.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla at linaro.org>
---
drivers/soundwire/cadence_master.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c
index cb6a331f448a..d41adbc57918 100644
--- a/drivers/soundwire/cadence_master.c
+++ b/drivers/soundwire/cadence_master.c
@@ -434,7 +434,7 @@ cdns_xfer_msg_defer(struct sdw_bus *bus,
int cmd = 0, ret;
/* for defer only 1 message is supported */
- if (msg->len > 1)
+ if (defer->length > 1)
return -ENOTSUPP;
ret = cdns_prep_msg(cdns, msg, &cmd);
--
2.21.0
More information about the Alsa-devel
mailing list