Diff between 8054c46881037df4c400d6accbde27a60ccd3665 and 3479ba93704a30ccb501c697f979ada4e164914e

Changed Files

File Additions Deletions Status
audio/avctp.c +4 -1 modified

Full Patch

diff --git a/audio/avctp.c b/audio/avctp.c
index dfad9fd..009b94c 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -236,9 +236,12 @@ static size_t handle_panel_passthrough(struct avctp *session,
 		break;
 	}
 
-	if (key_map[i].name == NULL)
+	if (key_map[i].name == NULL) {
 		DBG("AV/C: unknown button 0x%02X %s",
 						operands[0] & 0x7F, status);
+		*code = AVC_CTYPE_NOT_IMPLEMENTED;
+		return 0;
+	}
 
 done:
 	*code = AVC_CTYPE_ACCEPTED;