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=1796383371; b=cQm7qpeasZ4xUCWiYi6Nb2EU7qA+HXPgWQoyjbc97jTLqCHmBcUEV9h906AP25wCb4xr LmutI+ychwu0EdqzKct/9Q2qpquE0yWpa/nh8NncUnL9KAutGVMQSVM4bdyoV6iautWr5 c4EpqZZ/gYkPf/8YUtOztamrnyLc6fi4h3QjYGluHzxaJFyJ3/8RIOUkElhWyMbRNgqFW 9vxLw4ZlrYN0gUg3c/ZfuehxKtReZKecdT2uPfV8H467hfQ6VLk8tpLBYxRRvPjI3gZAL 9Dnz3R4t/MGy9nhcvWElC1Lri9OyTdSxyVRAIdwyY1RL+NGa/v5CKxGIr1G3HVjU7UQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383371; 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=nwqen4VNTgJdFlJl4iUDsdHd85mX2FIB/wx6dpSSbs4=; b=VEIcpIlVXxIVqubVNRsCM7POKvera4m86dDpz2ydz1kHbenq99LOZSSuygJgUUf461F2 cEjdAQh5poSw5HCz+uuI8+S1EKr2vpms+rMuEhY6lND/lE6x75gIdpOM4EA7U9gLIJioi +uUCwyTBZ44cv+YSx6YpVKJsm68jTMIDB5/dYdoQJl5zReJXQ2OzSmB32MtXHK+seANVN iAU9pJVpeQjV0LUDvOCaUBrSnLmxAyicQJCym2d3IKMjlzG4koV63dG58Z0r1P4veJIZG tobK4SYHjpf+nvPM5i8P4aRbR9jGHCKai5k3HBFmP3b91Vf5/N/B/5CtHjeuvCG+Elg== 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=uBOxcmEX; 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 1F0AE606A32D; Fri, 4 Dec 2026 11:22:50 +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=uBOxcmEX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63D8D1F000C2; Fri, 4 Dec 2026 11:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383370; bh=nwqen4VNTgJdFlJl4iUDsdHd85mX2FIB/wx6dpSSbs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=uBOxcmEXoJ21sWyI6hDD5AkNrCioSEE72ijoyxzG2NMUTjqc66HRFfLL/q9++jRes psMc8gNTVQswVsYOyuX778mrgoSwLGv8R+Weulfbb8uzA3F5fjJzPKMTOXFH5NNPAb SE1J4U4mfzGBcTCzFhHfPe4573UPFkiJ4SEalE1c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Semyon Maryasin , Joshua Crofts , Zhang Lixu , Srinivas Pandruvada , Jonathan Cameron , Jiri Kosina , Sasha Levin Subject: [PATCH 6.12 198/555] HID: sensor: custom: Set owner for misc device Date: Fri, 4 Dec 2026 19:04:01 +0900 Message-ID: <20261204100615.766180907@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Srinivas Pandruvada [ Upstream commit 452a24b2c2ed95aa246fcb3fcaf74a97a95c02a4 ] Set .owner in the misc-device file operations so open file descriptors keep the module loaded until their release callbacks have completed. Fixes: 4a7de0519df5 ("HID: sensor: Custom and Generic sensor support") Reported-by: Semyon Maryasin Closes: https://lore.kernel.org/all/CAM2dg7ewfVJSP4rFyhkCB1Rmd1+X56sAg=eUdbPthG2xrLqwQQ@mail.gmail.com/ Reviewed-by: Joshua Crofts Tested-by: Semyon Maryasin Tested-by: Zhang Lixu Signed-off-by: Srinivas Pandruvada Reviewed-by: Jonathan Cameron Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-sensor-custom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c index e9d2aacf5d8fd..cc0be03a49314 100644 --- a/drivers/hid/hid-sensor-custom.c +++ b/drivers/hid/hid-sensor-custom.c @@ -719,6 +719,7 @@ static __poll_t hid_sensor_custom_poll(struct file *file, } static const struct file_operations hid_sensor_custom_fops = { + .owner = THIS_MODULE, .open = hid_sensor_custom_open, .read = hid_sensor_custom_read, .release = hid_sensor_custom_release, -- 2.53.0