From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380978; b=YLbVV7H3bTuPl2+rLDNGjNHGneMGl1vTXKhlD1NDHY9hXOwOrFdihXSlyGY0nb21LEoB OsXYEd/R4K1ue8aZdxVRXQoqYG6aB11YYrixnHAJHfJ0OnZS5GZSqCHn8ykqTVP9oSf8F U2kWh/Y/ikYi4lBSNVKI/QGiIFtimeG+bzz1XfaIS+oEqaUzsJtvLWMQnoSHUyZaJl9uW Wl77FxlRQUFzVlXpBQk/jZ7Z93P3sZAqmZ47iFnNUeoLSiCUfIBlfnpMHeX5MAl9jmsfl 61Mo3rIytCRnw7wS7/J/YGFbEu/U8qQ/SEfFCsN1/rLwW8yFUrj91NOLexB+2UL+JtQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380978; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=HPvjM8kau9du8R/H3u1sSZzjZgqsLBRfIDdXfakDxag=; b=JzoYkBLnmHFH7M7Yi25dkN0HyV3++ptFTcRTZXQ60HNzqTtu37bSfR39njfAk/ijpTjN xlt0+yms3MZr9S31fnVR/Yu5unPe9vKlOSWjqqqXmczy5OeMtMkyUtzV7A42Qnaa9x0Rt Pzyj7TSMYmoSYNTJoE+VDa2sxpzvPS5IsseVfRDuMvPgyITNYTWOIo4mhnAWweobiBqzu KiCBjEPGdS5w+ANr1lhBI4pt5RnBqay5fmIla5I2GgGVgMjjXNVjI72EVG91Mzver5h3Y B9FR60xucevEc2NJJtOfA1xO3PrTNocYeop9tmUchwIonA4bSgjw2moZSaBBZnPPzGQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BicuDzmd; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3298E606A682; Fri, 4 Dec 2026 10:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BicuDzmd Received: by smtp.kernel.org (Postfix) with ESMTPSA id A37321F000CE; Fri, 4 Dec 2026 10:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380978; bh=HPvjM8kau9du8R/H3u1sSZzjZgqsLBRfIDdXfakDxag=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BicuDzmdtklIbdNuCY93QNfKAItc4WTqJ1Be8IkAfjqhHYL6FnzNjA9GKywW7okY6 IP54Wsf2Gth2aPlUuDYTPMuxoBhb8zX+HrZ+Cp1Eu0mm5Wgamnq41pnBTdetCYlrZb iuYqzWkyJA6Y5dQYwmMbFMkUhWrksq2BmijoNZRA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ivan Verbovoy , Dmitry Torokhov Subject: [PATCH 7.3 506/742] Input: da7280 - do not advertise FF_GAIN Date: Fri, 4 Dec 2026 19:06:10 +0900 Message-ID: <20261204100648.581526232@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ivan Verbovoy commit c1f4db7e869ce7dafd1811a75b392740985e1199 upstream. The driver sets FF_GAIN in the device's force feedback capabilities but provides no set_gain() callback. input_ff_event() checks the capability bit, not the callback, before calling ff->set_gain(), so an EV_FF/FF_GAIN event written to the event node by any process with write access to it calls through a NULL pointer. The driver has no global gain to set: a constant effect carries its own level, and a periodic effect plays a pattern from the device's waveform memory. Drop FF_GAIN from the capabilities, so that input_ff_event() ignores such an event. Fixes: cd3f609823a5 ("Input: new da7280 haptic driver") Cc: stable@vger.kernel.org Signed-off-by: Ivan Verbovoy Link: https://patch.msgid.link/20261109-da7280-fixes-v1-1-09cc3650261c@gmail.com Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/misc/da7280.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/input/misc/da7280.c +++ b/drivers/input/misc/da7280.c @@ -1227,7 +1227,6 @@ static int da7280_probe(struct i2c_clien input_set_capability(haptics->input_dev, EV_FF, FF_PERIODIC); input_set_capability(haptics->input_dev, EV_FF, FF_CUSTOM); input_set_capability(haptics->input_dev, EV_FF, FF_CONSTANT); - input_set_capability(haptics->input_dev, EV_FF, FF_GAIN); error = input_ff_create(haptics->input_dev, DA7280_FF_EFFECT_COUNT_MAX);