From patchwork Sat Mar 23 10:41:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 782149 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.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 9F1FD10A1B for ; Sat, 23 Mar 2024 10:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190513; cv=none; b=tpeGRa/K7YZ/Xfm+ccSWeR9ysJQDTqApOwio3O8lCT7bckUjlsBRBxJK0dTXKI3nYaoGahbZDbfbyExO04hGzBQlKiEBhwpOp3yIkFO0VXUVj2V+DYdJTEzaw1tu2OqXQlc0PR7TI8E9QFQBXyrbYBGQl3nOcUlIZrJ2rReNaLI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190513; c=relaxed/simple; bh=SydhYBUNZqt6seDV8GSPes7otcagbCoXjH+x0l9PSis=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PkitCWArBmL2/lqh4/s3SlZKojHsX5Y+O39eOwy/hxWkVLKOzariKF2WTSmxiyzdweFxPtW0z3FeeZ2fwB0BdlgNPANVYdcitJjdR7NPuv61pJuO/JLr/1pPFB9gzCNDWE+oPxEhNOs+8AipcF5fRAI6QexpVhofiIKcoFh7Q2w= 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=dO0dWuhc; arc=none smtp.client-ip=209.85.222.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="dO0dWuhc" Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-789e2bf854dso183085985a.3 for ; Sat, 23 Mar 2024 03:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711190509; x=1711795309; 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=dO0dWuhc306F9Z3PScGw1uDUZtZ4FR4RWg6mIBHJAbbFx/CnS5AiCdFwM2YCSMcyvc oi0T/VbWujf6EAdlgosVNElC1Q078IHlfrRk4iSXk+co6CDHka27oNcpPubPb5jK1gvX d2sVVhBxcnGVS0EaKBb4KpoPwRvDu/DMV/bvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711190509; x=1711795309; 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=C1AJuOhEEfN3++BzFWa38hj1AJJAB0Q5zCoj03xs1pE4xTmb54kO5om8zenMfdYgf5 bWpQcbifttjjx1EpQN9GeGXJx7qsCgQuGjlJ01pOZrKk1rJXJYpBzxfPD0ONf/KNKAJ+ WzuwJ6yO3FkONcof/EAQAQ6ZSykTIObYUqMJZfIcJUKkLAIWqdF1fm3pn/v1hCsP+B4n PEdk7IamKrgJUIMWNV6UlduqIw159Cs+52hD8HSrcy/0zvTsHxGe4FyIPWcPKoS8819o 5u40IXWMGKvIDb2qtW7w2u6IpFjfqk9tTTfze3MCZvdTM0hMitrT1gnpQufh4gSAFN5+ TMOQ== X-Gm-Message-State: AOJu0YxacgsDoY0Np4SLtUb3UNRAsfL6eebD63Q/CH+tYebxST8QkOAW mfZMPNVKcLa2hpUhBPnLkMPGzSjux8BwG0z28yioIsShEBmlKGstGT5vjWQodw== X-Google-Smtp-Source: AGHT+IFJ0AxLDSRvjFb1ZMGrWouHQmyY7qI2KBszA3xQ8hMp/4DEq6hXhIgWD+DLoGqs1PoIzfFgPg== X-Received: by 2002:a05:6214:4112:b0:696:116c:f00 with SMTP id kc18-20020a056214411200b00696116c0f00mr2359404qvb.59.1711190509586; Sat, 23 Mar 2024 03:41:49 -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 6-20020a0562140d4600b0068f75622543sm1998523qvr.1.2024.03.23.03.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 03:41:48 -0700 (PDT) From: Ricardo Ribalda Date: Sat, 23 Mar 2024 10:41:45 +0000 Subject: [PATCH 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: <20240323-gcc-arm-warnings-v1-1-0b45cc52f39e@chromium.org> References: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@chromium.org> In-Reply-To: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@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 Sat Mar 23 10:41:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 783931 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.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 B997A13FEA for ; Sat, 23 Mar 2024 10:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190513; cv=none; b=lZlE4LkgykCyW9IhjQXE3nrhg2TVDFW1cGp8qmJa4kCbK/yhG91uYePq9IFJWvPfE3XeV/iZ6UcD8HNPOEgSxGzjX+4K3fq9FWJ/0xiTDG4czfydUUBn+w3dFJl51ncuZWENYNf0Xzi6c5PhhRW8rbX0Dsy/T/P7dkNUysMcsk0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190513; 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=QtWrRwSfAGgNvgWAUGDl54r6uQDq4sh0h4RmuAOubtV4EolVMrmR5sWI5YYUB7u7vlywen2BFrzjYIjAzk6oVXFpMrimFETF5vELnEp+rlJcF8ssrQmULY+td8rM5iv4Sfnqj3UurXMo/7Cl7JSPWSNcMT7IgYRRpGBpuQg+qkg= 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=OYOPYYbk; arc=none smtp.client-ip=209.85.219.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="OYOPYYbk" Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-69185f093f5so22341586d6.3 for ; Sat, 23 Mar 2024 03:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711190511; x=1711795311; 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=OYOPYYbkeqSi2WK/juteGiXBuhKsWZjsJQeMrLF4tfeainuFP5ToghClEJRiTdi7dy rLZfwgvQt3hvIQbDggswBT7PsLW+G9gC9i5lsraM75IksXfarmyvWE49wwwIVjKru/qZ v7zRYq7neJF2QRiPZjrae+fR6ti4CZchjKOFQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711190511; x=1711795311; 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=crSkGv1CJM6xbdeh6dHS6QI0TMpBQ5xN6ZpPUx1vAY+y+lRb6Q94HtFkweIgmT1Un2 xnuW11JdPmsqeQdUe6Wv/suOihg0lb/jkk3KD5k7AZimOQ4rIRgrlNxhZw+UyslFdgeO 4MnvPS/u1XKGWIBHzABPiddSvdh2808fclN1DXSejQlSS1k7u6D1gnO/eCl3hd5KaxDO jqUiWya5SjI5UwYaTtPEnbitpQMLHg1m2ZIvnGCSwHycZyaVNC3pV3i9xGKAjJwIhBpd S9IMEui0/NXwY3Km8gVaH92vHn65L/OsBPNU4dLf9klnNR/xodxCFvb1uk/VHQuHrAKw PoFQ== X-Gm-Message-State: AOJu0Yw53CC/4i5LvF2N/IkKhLwB1vSY0GiAsgIoMuJOu2nnf+93G9LC fwcGIqHjRA21iKTj+OIPDgkg58L9oXmV37uVfwpVoeg+R74VcLX77w8g9PtGjWShY0yDkV+bE9M = X-Google-Smtp-Source: AGHT+IGOP9NmNvjkaFj2nG43rNY03FVvY8JGudvMrkdWl0W6OiPHpehuLaE5+7bEg8g8j7jyhHLwOQ== X-Received: by 2002:a05:6214:4009:b0:691:5ff2:6083 with SMTP id kd9-20020a056214400900b006915ff26083mr2009085qvb.36.1711190510703; Sat, 23 Mar 2024 03:41:50 -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 6-20020a0562140d4600b0068f75622543sm1998523qvr.1.2024.03.23.03.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 03:41:49 -0700 (PDT) From: Ricardo Ribalda Date: Sat, 23 Mar 2024 10:41:46 +0000 Subject: [PATCH 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: <20240323-gcc-arm-warnings-v1-2-0b45cc52f39e@chromium.org> References: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@chromium.org> In-Reply-To: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@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 Sat Mar 23 10:41:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 783930 Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (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 038121759D for ; Sat, 23 Mar 2024 10:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190514; cv=none; b=CSZS5oUY5xW47hvpu18sh4qiqgU2qTXYHhF9ZZXHY4SvIK8a0bKUkIBShiZcSxBnMwiuuE4v008kPU6pMDSL0rYS/jg/msdWN45wM1hxBLbNbToWRS8oEl2MC9xoHe9nC1kydqPoCFR83AFoKVALTms0i/WnQs3EkSF+7p/S5tc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711190514; c=relaxed/simple; bh=GEI/ooPR1uxzhyNgwywp7m8zeQWCBAmFv9ShGuGC3WM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T8cN4zKpPiqkvgEz0tTyZjkwh06Dls1UdyI6DhkT1jH7XSNNDpRgxVAeR/gUK0sbrCrscmE1UP4NcFiDkvxi94f0L8+n7GJ3udhYQAuAy9injgGmLjJwDi2WFkz3nqWVYdVkgU9yV4F5dO+L45VELDhK5hioIF7vxyuj6tTyka4= 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=Tv2f5+uB; arc=none smtp.client-ip=209.85.219.51 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="Tv2f5+uB" Received: by mail-qv1-f51.google.com with SMTP id 6a1803df08f44-69107859bedso20060996d6.2 for ; Sat, 23 Mar 2024 03:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711190512; x=1711795312; 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=Tv2f5+uBv93MVvRfoVm2O8kRG3mojEdZIlp7HnN6hdomSBgI5qeTE6TyG4kC/jfqBU 2Sw7By4TEqxXtjDSv1l3JagA9pvPfZw2BZkEyT1AqkwPtYojstR/N63qiDXbCm7SsPSr SD3r57QbWIjksbhZEnhEW4sL3nziVVZ41ZPVk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711190512; x=1711795312; 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=wj/Q39dfVLMW6uiFFrniQNpeYTNvofV/3cS5RGRz7LKyUSB0VW8ya7QwkOzbFg+LZz zBVpADqWmMD8hIGmP2xYiQrZvK+2BIowAqQIKCUB238f45iTKQuNEbRi5EcMcKsX6jKh 5MQ4czqU8zhc331c6lmWb2xShK/mjDAp6rpj5ssRMu0YywKv01xDMkH4CR7wSkZdJqnA VFVjbMBrHAmAtNf7yi1r6ztgr9gOiqEduI86lmme84fCTuuJhlYKXpwADD9AAnR8n10W XXIV6GnQBXHxFzCxPJ6vXDs819MR+K6oLwiaxFRlh6+41W1u+L391wSoHpi7wPWn+l3R ofSg== X-Gm-Message-State: AOJu0Yy08YjwwWl4tkWifBdMymeAR5agzMHGoo/m1KhwZQEdfEMle+M0 zsM0F30MnMEjw0suBDVvxoXhGKBGNoM4fzbrm8wZWiS8quDY6OujwY0p1awSLQ== X-Google-Smtp-Source: AGHT+IFqiP6PxKrx0iNYkypU5fRxQ2Tg1JQsARpN7FhxoFv5VhxvCeHLgOCqbXVBG5RX/NkfTi463g== X-Received: by 2002:a05:6214:2249:b0:690:c093:d833 with SMTP id c9-20020a056214224900b00690c093d833mr2314782qvc.0.1711190511851; Sat, 23 Mar 2024 03:41:51 -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 6-20020a0562140d4600b0068f75622543sm1998523qvr.1.2024.03.23.03.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 03:41:51 -0700 (PDT) From: Ricardo Ribalda Date: Sat, 23 Mar 2024 10:41:47 +0000 Subject: [PATCH 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: <20240323-gcc-arm-warnings-v1-3-0b45cc52f39e@chromium.org> References: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@chromium.org> In-Reply-To: <20240323-gcc-arm-warnings-v1-0-0b45cc52f39e@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;