From patchwork Thu Feb 16 14:01:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 654314 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 B4EBAC636CC for ; Thu, 16 Feb 2023 14:01:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229504AbjBPOBq (ORCPT ); Thu, 16 Feb 2023 09:01:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjBPOBn (ORCPT ); Thu, 16 Feb 2023 09:01:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E06D43470 for ; Thu, 16 Feb 2023 06:01:41 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id F29FF6102F for ; Thu, 16 Feb 2023 14:01:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 215DBC433D2 for ; Thu, 16 Feb 2023 14:01:39 +0000 (UTC) Message-ID: Date: Thu, 16 Feb 2023 15:01:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US To: Linux Media Mailing List From: Hans Verkuil Subject: [GIT FIXES FOR v6.3] media: v4l2-subdev.c: clear stream field Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The recently merged series adding the new 'stream' field caused a regression in both userspace and kernelspace API where the 'stream' field was passed in uninitialized, and then failed the 'check_state' check, causing -EINVAL to be returned. Since this feature isn't used anywhere yet, add this patch to zero the 'stream' field to prevent breakage. This will be properly resolved for 6.4, but for now let's keep existing applications and drivers running... Regards, Hans The following changes since commit 05165248df6552daaacf5621e3a5e2369117a8a9: media: v4l2-ctrls-api.c: move ctrl->is_new = 1 to the correct line (2023-02-09 09:22:45 +0100) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v6.3k for you to fetch changes up to a990d9e36d35ab6887c6ce2c8e1191ccb1dc7b48: media: v4l2-subdev.c: clear stream field (2023-02-16 12:10:16 +0100) ---------------------------------------------------------------- Tag branch ---------------------------------------------------------------- Hans Verkuil (1): media: v4l2-subdev.c: clear stream field drivers/media/v4l2-core/v4l2-subdev.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)