From patchwork Mon Mar 25 14:50:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782437 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 7CEA813D259 for ; Mon, 25 Mar 2024 14:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378228; cv=none; b=kB3nOE3zEmCBV7nwZvgw2NGdNZhgiCBMxvaTIDYK5sm+I0lO78PTRvXHOpIuql7YeTUVKFhd3g1G1KKg1vy1ZB///Zbvlfm2kkNyl0xsobPMvf61/QfbxLHJIV2piy1/WOINskbLlhTGQjpyBRD692dN+AzIWlTvNa5bLZwmr5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378228; c=relaxed/simple; bh=bzGkhh3857LfO//R8Cc3xM+Sm0Pu0LcZVZpGpS79/9U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LDpvwccsWzcTJJ2Pfm1X0rCOFAqikXWbKHpsVrTsIG/NHFjdkF2R3bLnRqLgnvqH3LOWWEjMYdzn/gXBYgYnMrzuoTRhg6yK++ahBBeNJzovOzAfQ+bK4yv89WKxNghuQvZcdXDOSa2/2n+2dXrOzCpZdJDDHz4mjqMg279HJNg= 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=W2gaYCIG; arc=none smtp.client-ip=209.85.160.50 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="W2gaYCIG" Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-220ee7342ddso1528443fac.3 for ; Mon, 25 Mar 2024 07:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711378225; x=1711983025; 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=HiJIJJs/fXvTyCDSSNBDGHDw2J3EG4BtX2teiiFjae0=; b=W2gaYCIGNnCQvWLmUv7VdKQ4w9GjZaQ4/4apOsJMbIWRsmtzRHCNVLCerGfSc53Q7W dWZJJQukVWNVYlNTbiuXBMgDKsAzi801kDG79DRg4StubaWNySl1aquooJVwppQwGISr V5XU5gripwuSe4PpeD52JJk++ZjMY4NAvYcHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711378225; x=1711983025; 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=HiJIJJs/fXvTyCDSSNBDGHDw2J3EG4BtX2teiiFjae0=; b=jM/UPocXlzlkG9uGY9z3PhpJCZwmlphnd6rLPm4quWFVkyTQKJP8exGfyMhED5nsQW p944gCVjBUuzO7Zj8ASD2Zb+JTBjRIhi2s2qYoGB7yvzp+dZgfowjbwtuR4d5kgnsB+G 2GIyeAeP/Fe6VycgDcp0O+/0/vJI+8rGzvbcfB9UlFUz7qkKiYUPN/r829nlbZAht574 73NBH0IfUz/1mPtlV7ihQCffuawxN75NG19BlRGQLD7DSqzpBjC/qD0nxlCySF60KjJO rTUsGKC+wg/rIYJ7yhzvJXyZqHQI39PsEB+SpaRz+kxjMQ3ks90jkXUE537IVHqsOVpg OEjg== X-Gm-Message-State: AOJu0YxEmoFDyEsZNHcor6HBfb8q3bqeYKMvs+zQu+dj0NaOrxSMRTE7 snV045AMkBdNF2sbPXXSQPsQotWX3ohRXoIooou9b/oCm+uY8UY/ZwKG/WVr9w== X-Google-Smtp-Source: AGHT+IFi6H6aHLQfI8VFi0WO8ICSYFmiwIeOfLPtxErl0UIG07TzmLmgVZ3n0y6H5EShjbVyMwmPSQ== X-Received: by 2002:a05:6870:1641:b0:229:e41e:a6b0 with SMTP id c1-20020a056870164100b00229e41ea6b0mr7401259oae.47.1711378225403; Mon, 25 Mar 2024 07:50:25 -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 eq17-20020a05622a5e1100b004313f54aaa9sm2491449qtb.5.2024.03.25.07.50.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:50:25 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:50:23 +0000 Subject: [PATCH v3 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-v3-1-81b8c10dc18a@chromium.org> References: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@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..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: From patchwork Mon Mar 25 14:50:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 783898 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 7DE891422CD for ; Mon, 25 Mar 2024 14:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378229; cv=none; b=czfoVVg1i2HYSoiSt5VJzeTPRzIQje38FyO1lqQDykhIZ3BVPdL8ZDwBzfdDYNzAaKLNK641PMIR7KdCoPGRHpLQGkNsOc/scp4E+Tj3qkaz6t15Ofl+sCgeeuJLAx/tUVnmDlgqBV82Ovg/i7nOPk6b29J/pXJLQvKMrrfd/Sg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378229; 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=oNO7sqdoWjpyCE3CnY3aW83X4yR3mjq6GWCdBiraoIIWldBJbyRQTiP8cn+RMrInWoplMmCP7sBc+rzexxy0V27RpzD+5rv/w/URSTQQYoVVvwvhSPSrsycIxe7XOxHndQufukQRDTwHc+spFyJd9uAmW7jMUYnVLgfmts952Uo= 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=f90HVDVW; arc=none smtp.client-ip=209.85.160.172 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="f90HVDVW" Received: by mail-qt1-f172.google.com with SMTP id d75a77b69052e-430bf84977dso31959261cf.1 for ; Mon, 25 Mar 2024 07:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711378226; x=1711983026; 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=f90HVDVWIxhJ7GoJusxCrJ9iTy5AMaJgTUni/n8c/Ks0jIMz1mBBGdoUBs/ohlsoDa c+MOFkqHdK9DW+6OA4giAJZpyDSuNwBYd3cNvhoxLloVVwK/KLqIvFL0eZAxyPc2gKt0 GKCwxL4Nev4UPsS/0phJ5oUeHL7adk+sahEfg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711378226; x=1711983026; 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=KDl39WQWO9CeDVVepvOspzqhX7BxnYApT4iXK8ndBfGOlHrH8O1Y3tuk5MX6qtYRDG TdNyrH/0muKO9aOcFkR558tMtz1Mhn2nPyfcUXJVnC9gs47bYCC0fuiHe6wGRxZH2/oU HtHXJ4bDWpbImCVKP96HLQwLjfn5vPtrl+CWJvs1TxllzMxY/VkLFab0rA/UsqW1lCX1 aRXgzKBIs0pr48bPth6r2JV24Fj2R7XMF6Epv+GnGsurseyECo8nL0xgbckN8xS/CjcK LnjH+d44EU8dthOnDkNHL0dmStWxyCVS2OQDlpti4Daggy3DMu18yA/Rcp1kNaeZCXoz 93wg== X-Gm-Message-State: AOJu0YzM6Qu3hUda6Umg+TKhEY0XEag55x2HydzDC+kI7xnL9NpEiBoG Heb2V81sEfMkWB3F1QR9laAsLdbOqBZo0jonvJjP8KnS6d7FZ7zZFLI+k8PGfMYzjjdsjD/bHeP FbQ== X-Google-Smtp-Source: AGHT+IEqb/RgrM1Zmsk/Hg4wuXRP1MFf283Gr9y7uqBgTIorav1xkqxxl139xGt4TwsfJtE9o1cPMg== X-Received: by 2002:ac8:5d10:0:b0:431:38a4:ef47 with SMTP id f16-20020ac85d10000000b0043138a4ef47mr9187432qtx.48.1711378226517; Mon, 25 Mar 2024 07:50:26 -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 eq17-20020a05622a5e1100b004313f54aaa9sm2491449qtb.5.2024.03.25.07.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:50:25 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:50:24 +0000 Subject: [PATCH v3 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-v3-2-81b8c10dc18a@chromium.org> References: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@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:50:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782436 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 96EAD15099C for ; Mon, 25 Mar 2024 14:50:28 +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=1711378231; cv=none; b=Yw/spIDm8MUzPD1tgL5uCzpAYiT0kTBR9bG8MZrRzGf2+CEe0zaLQDL0AlNMQZo+h3kcMVpb+PzI0AobZQ49LH1Aq3TwbEN6uq3b8s+Mr3/HspQLRpI+Tmv4Jgc9UPf80qb5BVJhqlY6vtdGCvQafWcVzn8N03irKWfLCIbUrCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378231; c=relaxed/simple; bh=GEI/ooPR1uxzhyNgwywp7m8zeQWCBAmFv9ShGuGC3WM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=prxLTj8ctkpxDkRnmpmNnCbS2LetRQpyZyM8VoDln6TySiNCVexIDcCYgjLnyRv/nS+iN17znbXmTgfsWUW/KgqtTUxC4FUKBFZ4krs5LaQzlBI2aDBfj4/DjqzcgqEUD7mw1Sqx2ebTlDnb2zZsXi1lYBOrxNeuW1N/aijs1ZE= 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=VgUCYr2k; 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="VgUCYr2k" Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-430a25ed4e7so30128381cf.0 for ; Mon, 25 Mar 2024 07:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711378227; x=1711983027; 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=MqD8wzexo6xit6zjT25NUCdriPsphWfFfa0tlNyYYks=; b=VgUCYr2ktZ2ZnLPpj1w6jKHNBU0Smcz4R5UlwEf+LObLXyS5zOAiLplPSImgdBgil5 vJw/JdVdSHt5OunlKR0Jqif4eYLGBwwAhzFekUuDVUvJ9hU3dYZ/BckA1dP3Gq/GmrAQ Sl0lHzJD+E1mVY074tE9f6UI/73pFdCgkxefk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711378227; x=1711983027; 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=MqD8wzexo6xit6zjT25NUCdriPsphWfFfa0tlNyYYks=; b=iqQ5Tc8EM7jBdoghxAR683KPBCe2pD0IMlBCXLHaujjrUIvnDxgmmcJBBY26v5RQ3/ yWIkclZcYEOA7cJLLI/SZj6p4Zyb03UZVe0H9TN96hMcvApYlyRJILK2xQzTnjsm1SiG 5/WUK8EiTJBmvKUKcEL2I0GuInr+SZgfeBzHvP4hyQ782xdP1g6AjM8m46taZRQBqs7X 1VO5cI1diMPGjcSrv6EmXhhdN8uV/jE8ZKjrxwkk8BM/kS31qxtVw8/rQvBfyaKhyXDU gp/zVlePrbbBcKAXGifesAgWvTlvX1oiobW4baUdYRj/8j39rsrnyJlcAOQKsdUsmCEy UMRA== X-Gm-Message-State: AOJu0YzHvGJS3Y5XX1/G1xlmWlgCkwVLDRo1La5hYKFSX1x0ggdZPQ2d 0elIizzpi3XAdN1yf5SwM04i32/VBTM+C4FWNu9td9BKIzysx95i0A7EEGHnvQ== X-Google-Smtp-Source: AGHT+IE6yzbqY9Tnz0mf6K9GR4TUk/vQYebvk9s+XGtSDcB03p3513ghSfX16LycTxIPRRyfSLKj6Q== X-Received: by 2002:a05:622a:15cb:b0:431:47f2:df8e with SMTP id d11-20020a05622a15cb00b0043147f2df8emr7329210qty.2.1711378227626; Mon, 25 Mar 2024 07:50:27 -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 eq17-20020a05622a5e1100b004313f54aaa9sm2491449qtb.5.2024.03.25.07.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:50:26 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:50:25 +0000 Subject: [PATCH v3 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-v3-3-81b8c10dc18a@chromium.org> References: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v3-0-81b8c10dc18a@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 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;