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=1796381800; b=l4dNpjt31xzuVZAHSkqmD9F8ZpBJ1TfxdHDoZ3KPGwvnS595XvnmuMYJwtPDPrNyk+4C 75vLP569R8q+7d3onJElHhnqSkD8vzE5isOUEWt4ExrDMSpLZR3DbD715aWIlxIfo1pYZ /xdjepOLKW2jOf+FaYble3devrkm4noam8WMwwIfFhj224hRz44/cxYpUnZTUDENtq5ZT /iSLtXgGFvcmIK1eX2pZ8nSVDGowdCy3WbeKyf5PnJxolkewW2z+GSM2PhJbNsMOokw7V FosXTx1GqIGifE6956qpDx+Y5OU2RlxN5LAeQlJ/bXLKdStYRsSXpQewL7ndCHp9ktw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381800; 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=3VvoEcTS+Wxwg8mWyPg48Xhkg7j2JRowzZibu0DeEO4=; b=Jt51kQFbq6VkAMhwmSq5ncakvuzxkenBQ9dkQnrjcmmELFkL2QOspbBbNfh3w+OTvf96 d3Iczpq6ETCZVNM9I7zXmQ47BLmTrP9oQswmQZqGAGqRhjYTWMBVSvRQPo+MiXJZNU4qY ubxXBObClHVBRwrFENzi8K+n9VO8meeYyZ8EAJwRWjXdpK9+Wjp+zKzY4A7oNDQMHjfit Etl+bksz44jk3Lvf5UI118tQUAhSY7YbIWFiGTHw6G8o/vyA6GYIgvIrOlbYeQSjJuBSS KrYxgqtsmCc8hDLDF4bP9KOPbMCJTDRiyULh9eem6W6wABsHRnvuNk/aVKstzgDjLqw== 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=adpayDgY; 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 BF556606A322; Fri, 4 Dec 2026 10:56:40 +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=adpayDgY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41B301F000C2; Fri, 4 Dec 2026 10:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381800; bh=3VvoEcTS+Wxwg8mWyPg48Xhkg7j2JRowzZibu0DeEO4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=adpayDgYL/ZG0pDXOOzR/jNoSyX9qxHXezHRTFyRzeMrlPDXoh/VBDBT7IrQPCSS+ Tb9Da/fyowIcrQA9RZXdTqPX6+2NwCSXs6oZg01oWS8uSoO473kWRoGTBbPNMjyjvK n/uW+R5EfoRm7QwFTLPCi3alHuU92xFYbISDyszg= 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.18 178/703] HID: sensor: custom: Set owner for misc device Date: Fri, 4 Dec 2026 19:01:17 +0900 Message-ID: <20261204100632.605888026@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@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 6.18-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 0b97d61df0c8b..90e11c4533019 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