Diff between 50a01b0c17e9c46b7d1ded7cae7df5ea029819dc and e88f914ea700dc5f67e3a260a29b592df0cf2936
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +2 | -1 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 7e9a383..65f1adb 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1963,7 +1963,8 @@ static size_t handle_vendordep_pdu(struct avctp *conn, uint8_t transaction,
if (be16_to_cpu(pdu->params_len) != operand_count) {
DBG("AVRCP PDU parameters length don't match");
- pdu->params_len = cpu_to_be16(operand_count);
+ pdu->params[0] = AVRCP_STATUS_PARAM_NOT_FOUND;
+ goto err_metadata;
}
for (handler = session->control_handlers; handler->pdu_id; handler++) {