From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62C21C433F5 for ; Mon, 29 Nov 2021 18:32:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379048AbhK2Sf0 (ORCPT ); Mon, 29 Nov 2021 13:35:26 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:51798 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379503AbhK2SdY (ORCPT ); Mon, 29 Nov 2021 13:33:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C5924CE13DE; Mon, 29 Nov 2021 18:30:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73B06C53FAD; Mon, 29 Nov 2021 18:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638210603; bh=T/3Qd29ZQKUw2wpw0iL/6zXHaZ1kNIAAEEgr6sljFqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hrLByly8Z2d62hfbBvcvHjmmXnPnLJPnVflCs9KlJEXkiTV6BQz/MGtlS9LWHTS1M C3IvcrcPdwzzFnmDl3cSsInxjVZQed0oODLXbtt3G4hVnhnXMV2XcDkbMh9bqLy0NH XyC6pP8qD6W7ZRPdnyBWwZGz/2z95GIUL6Kmr8lU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.10 019/121] media: cec: copy sequence field for the reply Date: Mon, 29 Nov 2021 19:17:30 +0100 Message-Id: <20211129181712.297951366@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211129181711.642046348@linuxfoundation.org> References: <20211129181711.642046348@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Hans Verkuil commit 13cbaa4c2b7bf9f8285e1164d005dbf08244ecd5 upstream. When the reply for a non-blocking transmit arrives, the sequence field for that reply was never filled in, so userspace would have no way of associating the reply to the original transmit. Copy the sequence field to ensure that this is now possible. Signed-off-by: Hans Verkuil Fixes: 0dbacebede1e ([media] cec: move the CEC framework out of staging and to media) Cc: Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/cec/core/cec-adap.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/media/cec/core/cec-adap.c +++ b/drivers/media/cec/core/cec-adap.c @@ -1199,6 +1199,7 @@ void cec_received_msg_ts(struct cec_adap if (abort) dst->rx_status |= CEC_RX_STATUS_FEATURE_ABORT; msg->flags = dst->flags; + msg->sequence = dst->sequence; /* Remove it from the wait_queue */ list_del_init(&data->list);