From patchwork Mon Mar 25 14:19:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782439 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82B29128368 for ; Mon, 25 Mar 2024 14:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; cv=none; b=U6SmUxUqZzUBxC9W52+QPS2AJGWYFlcCfTnZVycu/tD46s5WSEmmH4748wxPw1c7yTrihPUcLbvWGvonYBeD9vZBXB2xECFwmT99V7w5lxn61jyJrPTYvCtKLd9AhvOe+nAkC2B4T5Sm24tkuBCYtperKqYsMtjQpjVXYgyU3r0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; c=relaxed/simple; bh=SydhYBUNZqt6seDV8GSPes7otcagbCoXjH+x0l9PSis=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uSzJxR9ca/nx9bImFnVkt9xZ+RsTIURqVuP9f207HtDhim2b4jr5SQ/9FbPxfjw5vs3SMdPyWkKcV116i7svTPsoFA6jVYaDHEFbiOFwiCTKYT42XO4dRdLvO1ICqr7Ry52B58l7knWSOUSyk1Jmf9ZERrZblIav+c9bClTMduU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=nMg/uVE/; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="nMg/uVE/" Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-430b7b22b17so30812661cf.2 for ; Mon, 25 Mar 2024 07:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711376396; x=1711981196; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=H3XV/BFRORhDDlgNHHmWyRWqMIVOw6WvWWLzRQu/wIQ=; b=nMg/uVE/TL6u6fL6AzDxSZwnQzAjadgsZTZT8E2sZqodgHh4JMh+NnIqUAKBF2KiPp Uhf8FeXRjkfRHwBoEN+9HafE25od3khaHWe5KwP3QD11kTwsR0mlAy/E1Qq05birEqIs 5DX2ztrA4a8YaATMC+x3ToK3CmHhMWnbJaD8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711376396; x=1711981196; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H3XV/BFRORhDDlgNHHmWyRWqMIVOw6WvWWLzRQu/wIQ=; b=WeO+jMHmxUDHJyFeEF23Bl4hE6uncuxghpj69gEgvBscf+vgq5baq7e6X0cEyjzJzH zuMnL+An8itdcj/L3Cxioo28SvnBHuoV4uKne7bWexMRc/sxx1ZOCSjMUOtbYqss4zSw 2xLZu+bw3rPHRK4r/sX8WkGb8mwDjKkvVAwxzZVbjNZWdGspQnrj4Axl9VKM5kQV5AhC yneX71qqyMtBV+aCFjNLIueadegOAeTQ59oasXCzZ5VKb6SUeGQdR1RnPd4p35gsdXeo UPRmYSzA9W56y3gF4IUDF+KmWldyEGqcZqtVOdQHkbVubDBvyjm7WuR+rEUngaYf71dV ARRQ== X-Gm-Message-State: AOJu0YwO1fv1L4I/xWulMTTMPrfkrpG72Gf8C8UhcsZaAcSM2UkGT2Go xecCQkrEh2iCrvMKS7LmQeQUQT+a6qwpHDFEuO815e7DiHvr2+Ap1/iGRev/Tg== X-Google-Smtp-Source: AGHT+IFEBffHombxu9VAZkjJQI0jb6jvl5jRk9TPO0Fy0y3nb6ZId/qWKdNbjlbDsQjikKxzHMWPyw== X-Received: by 2002:ac8:5a09:0:b0:431:5c20:f0d2 with SMTP id n9-20020ac85a09000000b004315c20f0d2mr2279132qta.22.1711376396512; Mon, 25 Mar 2024 07:19:56 -0700 (PDT) Received: from denia.c.googlers.com (188.173.86.34.bc.googleusercontent.com. [34.86.173.188]) by smtp.gmail.com with ESMTPSA id br11-20020a05622a1e0b00b00430a9b20a55sm2618759qtb.69.2024.03.25.07.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:19:55 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:19:53 +0000 Subject: [PATCH v2 1/3] staging: media: tegra-video: Fix -Wmaybe-unitialized warn in gcc Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240325-gcc-arm-warnings-v2-1-47523cf5c8ca@chromium.org> References: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 Make sure that tegra20_vi_get_input_formats always assign a value for yuv_input_format. Fix: drivers/staging/media/tegra-video/tegra20.c:624:72: warning: ‘yuv_input_format’ may be used uninitialized [-Wmaybe-uninitialized] Signed-off-by: Ricardo Ribalda --- drivers/staging/media/tegra-video/tegra20.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c index c25286772603c..c39b52d0e4447 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -176,6 +176,7 @@ static void tegra20_vi_get_input_formats(struct tegra_vi_channel *chan, (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_YUYV; break; case MEDIA_BUS_FMT_YVYU8_2X8: + default: (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_YVYU; break; } From patchwork Mon Mar 25 14:19:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 783901 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5851912F5B8 for ; Mon, 25 Mar 2024 14:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; cv=none; b=NitcRCDg4fPwfzwAdNeTR6xby9fgqHqx4IAJngP4jK7rpZef6TOjIw5ICuDSYyxNN3YgfXm+D4zQCt/0IIILbT9z9lwH9ApB51OCKkvyb5bnE2gpFXQxtXeegGx6Gn9g8JA/noG6CFODiGhtnltI6gCiwlPEykxR/5+DX2o3OSI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; c=relaxed/simple; bh=2dAG+Jyz81+oh8AF6DeyE+UyRu22SiDEL635nHH+73Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ghv0o6X6rJZ5FnDweeKsFPBe2P8+u6xHute7fsla9cmiO+dtT2HSU94RwtYPBqWKp8PMpzFtqr9yfxXKxc2Mh5ua8DDdJGtAh/y/Uxes/ZMthpEGgi9hwoNEKF7OZdS7HQtEY7Bp90nyvArF3gtzuphNrK4CQLbIOEUwR993HQQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=jhgXM9I2; arc=none smtp.client-ip=209.85.160.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jhgXM9I2" Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-429de32dad9so29735541cf.2 for ; Mon, 25 Mar 2024 07:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711376397; x=1711981197; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=n8QTboKNFlxJkYJ1An2aW3V7umhSjhO/WM5O6LoVCcU=; b=jhgXM9I2GEmuSskr4OtEtPiiHHwjP90lmyWP1L3famVlnG1OyJVtBN7ClIVAram9OQ HOlJyC+Y6G3ZdIhk2nxfEIbE+sesdqx+F9GQi6LE2nIGu4p656yElb5XFvCVnAQiPWg0 6L4Wa8MnSHZ5qHw3EeB8wso5H7ch8B+ZoA3X8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711376397; x=1711981197; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n8QTboKNFlxJkYJ1An2aW3V7umhSjhO/WM5O6LoVCcU=; b=pgJ2XUIVR7G2r6ATuxwOZuf4TLfZCfh2upIiWXO3EcVeS93iUVwA3I3kkuTRIR/opY 1UVoWPqplS/I+EkgdgT4m49kfjGO24s7cUGkgglA2VKdnhbya3B+LnKPJdWlDu90FO/B UHF6RG3+m2DvwDNrMXHcfRIqgDFOxZN9mlBm8WgXkhmY3nEAGcCzFKoFu3eJMWLmMBvv fgek+MV502CyE3iscToE3uvqW1cqHBBoAultS77+XjD/WojkerEXoTTS+y+CK8Q9E6Kk OXAc1W01QlJFFSeIotfd69Zt6zO1zlEPOIYc0ULWdAyY4OrrSVK/CPkoOOFiCk5b3DBh mQ9g== X-Gm-Message-State: AOJu0YyfvCnTecWdURO4D0X37rP0uL7j3ItIRcHTwwrOUw24KBrptMWW 5YWS4/rmcb4WcCPyKs4/+1BanAQ4K3jqPFjSRLr419fVfFMMM0YVdkb+O71Vqw== X-Google-Smtp-Source: AGHT+IFz1M7TzNsRqhapaOB4EMIJCF8pxeNEAz5599OCzPaIO+sM6oRyyPofmo2f9pFg+HoTstBcEA== X-Received: by 2002:a05:622a:652:b0:431:4905:bb79 with SMTP id a18-20020a05622a065200b004314905bb79mr5865639qtb.41.1711376397204; Mon, 25 Mar 2024 07:19:57 -0700 (PDT) Received: from denia.c.googlers.com (188.173.86.34.bc.googleusercontent.com. [34.86.173.188]) by smtp.gmail.com with ESMTPSA id br11-20020a05622a1e0b00b00430a9b20a55sm2618759qtb.69.2024.03.25.07.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:19:56 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:19:54 +0000 Subject: [PATCH v2 2/3] media: radio-shark2: Avoid led_names truncations Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240325-gcc-arm-warnings-v2-2-47523cf5c8ca@chromium.org> References: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 Increase the size of led_names so it can fit any valid v4l2 device name. Fixes: drivers/media/radio/radio-shark2.c:197:17: warning: ‘%s’ directive output may be truncated writing up to 35 bytes into a region of size 32 [-Wformat-truncation=] Signed-off-by: Ricardo Ribalda --- drivers/media/radio/radio-shark2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/radio/radio-shark2.c b/drivers/media/radio/radio-shark2.c index f1c5c0a6a335c..e3e6aa87fe081 100644 --- a/drivers/media/radio/radio-shark2.c +++ b/drivers/media/radio/radio-shark2.c @@ -62,7 +62,7 @@ struct shark_device { #ifdef SHARK_USE_LEDS struct work_struct led_work; struct led_classdev leds[NO_LEDS]; - char led_names[NO_LEDS][32]; + char led_names[NO_LEDS][64]; atomic_t brightness[NO_LEDS]; unsigned long brightness_new; #endif From patchwork Mon Mar 25 14:19:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782438 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52275131196 for ; Mon, 25 Mar 2024 14:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376401; cv=none; b=lIzu6+/AxBoKQJL/o63QDx6/sZ6N8SIL0ttHTdcT/SEAeczZPGu907XN6mg/IQqngJXy6PHZp76bqnyQIGan1hY0w1hhlw2PnQ6sKZTMcev25q0eiWlG4YNORD+OmwUlyrJKjD24BEuEtb3hlxFUwGpTrNRbMUfZwQBMa7nivbI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376401; c=relaxed/simple; bh=u7jspQ3Aev3XJQiTO8vdl6msbbnJu1QvF4iX1a51EjA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oeTzoupCMasI73fDnzMXypS03ihaca054Wi7OAqD4ERydHd3B3F+kIrGDPKf4CJNTOjzAQ0Qdq23QQvhyDT2QrtYS+/0EiZC+WXE1mWbGbpQOwQTrvMtNnYO2ELuQnPYxWD0U7qEzmntCb/jaGDIQcIE0K24iE1bkzMpWEf78BA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=RB5vHCsX; arc=none smtp.client-ip=209.85.167.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RB5vHCsX" Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3c3ae8fa863so2764506b6e.2 for ; Mon, 25 Mar 2024 07:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711376398; x=1711981198; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nxSMnfcXo9eH24y0bZB1VjxXV/n6bBssF/qdkJ/8rO0=; b=RB5vHCsXeJQPDsX+7xtNvbzCW3xKQ555NM6Zy0cGCvBPID21EIiJ4z3pKU220Z+qO2 9ioq1PxHXvQYTj9/+pyu2b3l3mI8W3VFRn7UzSkMR1RbdrAP6HzUHeOzfNJSQlQjoF6M s9qy8XEEochHe0t9LCq6Ww0AwjRwRrU8vnM8E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711376398; x=1711981198; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nxSMnfcXo9eH24y0bZB1VjxXV/n6bBssF/qdkJ/8rO0=; b=KazhU8E5nbK0rUoReYAZcXhXeoaSSbxieBjPkl/fduAkoicYCRAWXIBpDn1IJo9zHB xYTk6xaX2wf/XhgrIl0qvTWHr36IVwCYqvJmVBDGU9vwFySxR2GHPblwW/mhD7Ht+mxp JW/RnaOxN6BcWzxNXSdGkeJbk+uJamFUQfd5BMSlDOTQJ+cy5zibDq29a7lcKhZ1LwD8 1AlP1B+F+jMpDwA3x3SiyvqSA38foyTXEW63l6eySPVLlqVR7rY/J5h2RBm8/wwot5Ng BE4ojRQwdux9vI53dZA1eH8bsQQrl71momsafFqYmUIx+83v2m25joggm6OLxpMGE0eG Yk5g== X-Gm-Message-State: AOJu0YyEPZw2nQ/ieOrjeXSw1h9iHVVLe9diKiAnPqJlUahK39ls6iEL TwaI5iRrm23U6RwJV0R8yPcZJqFhA9+aBzdeKhsRlEVkpSDrzLZAt9d+1+r+yg== X-Google-Smtp-Source: AGHT+IFXDkHwTGNUZBxyMK2jzEutUrDBtNUTzl+YFRneAkQppTPw7jEE9XRF/qu3laG74FPOuty29Q== X-Received: by 2002:a05:6808:15a0:b0:3c3:c923:4f03 with SMTP id t32-20020a05680815a000b003c3c9234f03mr6512221oiw.19.1711376398398; Mon, 25 Mar 2024 07:19:58 -0700 (PDT) Received: from denia.c.googlers.com (188.173.86.34.bc.googleusercontent.com. [34.86.173.188]) by smtp.gmail.com with ESMTPSA id br11-20020a05622a1e0b00b00430a9b20a55sm2618759qtb.69.2024.03.25.07.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:19:57 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:19:55 +0000 Subject: [PATCH v2 3/3] media: dvbdev: Initialize sbuf Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240325-gcc-arm-warnings-v2-3-47523cf5c8ca@chromium.org> References: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 Because the size passed to copy_from_user() cannot be known beforehand, it needs to be checked during runtime with check_object_size. That makes gcc believe that the content of sbuf can be used before init. Fix: ./include/linux/thread_info.h:215:17: warning: ‘sbuf’ may be used uninitialized [-Wmaybe-uninitialized] Signed-off-by: Ricardo Ribalda --- drivers/media/dvb-core/dvbdev.c | 2 +- drivers/staging/media/tegra-video/tegra20.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 733d0bc4b4cc3..b43695bc51e75 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-core/dvbdev.c @@ -956,7 +956,7 @@ int dvb_usercopy(struct file *file, int (*func)(struct file *file, unsigned int cmd, void *arg)) { - char sbuf[128]; + char sbuf[128] = {}; void *mbuf = NULL; void *parg = NULL; int err = -EINVAL; diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c index c39b52d0e4447..630e2ff987a37 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -164,6 +164,7 @@ static void tegra20_vi_get_input_formats(struct tegra_vi_channel *chan, unsigned int input_mbus_code = chan->fmtinfo->code; (*main_input_format) = VI_INPUT_INPUT_FORMAT_YUV422; + (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_UYVY; switch (input_mbus_code) { case MEDIA_BUS_FMT_UYVY8_2X8: @@ -176,7 +177,6 @@ static void tegra20_vi_get_input_formats(struct tegra_vi_channel *chan, (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_YUYV; break; case MEDIA_BUS_FMT_YVYU8_2X8: - default: (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_YVYU; break; }