From patchwork Fri May 16 13:43:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis Arefev X-Patchwork-Id: 891057 Received: from mx.swemel.ru (mx.swemel.ru [95.143.211.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6425378F4F; Fri, 16 May 2025 13:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.143.211.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747403554; cv=none; b=Ypq+Lga/Xxv6R19969mbuVcDMuxq3gVJEn40wrjjw8QJiGKewYCTC8AYb4uUw9gNwFW6dKOnfXJ80RTme1AQpSNZiQQ9ckr9HhYT4I8KdcmwxmXN4J8i3cB/LGyaK+bXL/5vbfSDdM3ELl0BZ1pVfFmw27plamK+Bn3s8q1U0jo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747403554; c=relaxed/simple; bh=G7IoYBlekEDnA5WpbRnO4B6/NH2PAOUcB8QaLJiOfh4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YqpDYiCXvkS5Ih68/LZw2H6qPFVztDig3vVAD5wbnIxODXcnQURgyMsd0n3azQOhYsOf14UbO1wVEfd5zSSJ1U6TLFcac49mCDWtziyngG8gq49HQW/wJKpuuI1wyR7VsZLh068ONdYVLFiep7lf9vsuYRI4mVC7kftn9lmOtw4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=swemel.ru; spf=pass smtp.mailfrom=swemel.ru; dkim=pass (1024-bit key) header.d=swemel.ru header.i=@swemel.ru header.b=YzeYJdir; arc=none smtp.client-ip=95.143.211.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=swemel.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=swemel.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=swemel.ru header.i=@swemel.ru header.b="YzeYJdir" From: Denis Arefev DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=swemel.ru; s=mail; t=1747402993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fG5oBDu1wAr9VumjZosQuBP5gLbTO62GxOXNGfbeuSg=; b=YzeYJdirjawPFETK7VW0CQmZtmBQ6EwuNFIMwz19bKwexLLQzuI5Llp9/1vIjGaNZxaQwB 3SwDuT2EjnXYkJV6enP5NAfg9OmG5YGs+tpldx94qyht7br5rBiozsibobF86lEPE5CUel qs6CQm4to9YutyvTrJb6EkSnxuqHc7Q= To: Michael Hennerich Cc: =?utf-8?q?Nuno_S=C3=A1?= , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: [PATCH 0/2] Input: adp5588-keys Please correct and add Date: Fri, 16 May 2025 16:43:02 +0300 Message-ID: <20250516134313.282564-1-arefev@swemel.ru> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 1. Add check on return code 2. Prevent buffer overflow Denis Arefev (2): Input: adp5588-keys Add check on return code Input: adp5588-keys Prevent buffer overflow drivers/input/keyboard/adp5588-keys.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)