Message ID | 20210512131156.740493-3-Basavaraj.Natikar@amd.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 5ad755fd2b326aa2bc8910b0eb351ee6aece21b1 |
Delegated to: | Jiri Kosina |
Headers | show
Return-Path: <linux-input-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C52DC433ED for <linux-input@archiver.kernel.org>; Wed, 12 May 2021 13:12:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EDCE8613EB for <linux-input@archiver.kernel.org>; Wed, 12 May 2021 13:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231846AbhELNNz (ORCPT <rfc822;linux-input@archiver.kernel.org>); Wed, 12 May 2021 09:13:55 -0400 Received: from mail-bn7nam10on2062.outbound.protection.outlook.com ([40.107.92.62]:10368 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231695AbhELNNy (ORCPT <rfc822;linux-input@vger.kernel.org>); Wed, 12 May 2021 09:13:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VT9WGaxG3CtGY6gV0NF4CGrgMQr/9BnNvxn4NaRdVUe+mKpwc8U+YC433Y5K373uCrpetqe1m0TZ8eToaY705R9kKf8gbCCsquH1qugCA/emxt3vuAQdrzQ7wjk4No72KmL52YD6L4FF/K8OtD7sbH5/aANh4eproGmIoYEfrAnJWImNqjN3a1jPHT1aNVclbevGAHMX5uU1Eo9rDoTx/3YeRjRfFUaL7T0nFPnezwhVNza4QRCpwlWxZLSJumJal2CPll0ejJFY7fk5DYqq+rX1ThF5lGP78VtSAFlDSGqPvEnKpe2euh3Y5NH1RivbiEbUI22ir8c1JAGujzmPxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V5ZEQH40bV4yhJNbWkvuRHBEA9MkWHTzkzFVFZAu6Lk=; b=lTemDJbHeie7UCRAQPnoI6kF+R5WCEAPwWCsGRmpKcOaAOKDDxBypbdO2yeOGN7qKZChGKThWH1pncRSOUh4K90Uxkl76sJgalf/IGzq0ufxZ4tgZueWyaIzugX1RPQ7m8nHuYRaumFUZVKNN9cuxBynOJnxOEzWE8dD4kp6NzLopdVWd8rwooIGwhMQMfHvubmhDabZbGr2+nf9q0cwl/n5ADggsCu2plIKyMYNNrPmOKzzLL1q/TH+Ksptl75Sfcl19pIK7qoN4UezQYuYsZ49+m0TaD8K2m8stG5zMOEU3Frn6UYClU0OiHxNcsN/NS0G1XhtLsAPl7FyqzNbhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V5ZEQH40bV4yhJNbWkvuRHBEA9MkWHTzkzFVFZAu6Lk=; b=eWxsbZ2O+nSxM4etc0V++bM8mDsu4D1R7wUh1TBsgG7Wvu7xd9lQn/1dnQfqzU9pp0Jj+IOxEX0Z8z2aUP3bPUuOco4PQYeYPhTQTyJTZfXpJew3JWH1M6Rk7F4NeAt0FJ8lVO1TefIc9bn61gFMnO6OWf+VwlQmvqQoQhJ5ADY= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4812.namprd12.prod.outlook.com (2603:10b6:5:1ff::24) by DM5PR12MB1259.namprd12.prod.outlook.com (2603:10b6:3:75::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Wed, 12 May 2021 13:12:45 +0000 Received: from DM6PR12MB4812.namprd12.prod.outlook.com ([fe80::52f:e464:d09e:67fa]) by DM6PR12MB4812.namprd12.prod.outlook.com ([fe80::52f:e464:d09e:67fa%7]) with mapi id 15.20.4108.031; Wed, 12 May 2021 13:12:45 +0000 From: Basavaraj Natikar <Basavaraj.Natikar@amd.com> To: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org Cc: Nehal-Bakulchandra.shah@amd.com, Sandeep.Singh@amd.com, shyam-sundar.s-k@amd.com, Basavaraj Natikar <Basavaraj.Natikar@amd.com>, Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Subject: [PATCH 2/2] amd_sfh: Fix memory leak in amd_sfh_work Date: Wed, 12 May 2021 18:41:56 +0530 Message-Id: <20210512131156.740493-3-Basavaraj.Natikar@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210512131156.740493-1-Basavaraj.Natikar@amd.com> References: <20210512131156.740493-1-Basavaraj.Natikar@amd.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MAXPR01CA0118.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::36) To DM6PR12MB4812.namprd12.prod.outlook.com (2603:10b6:5:1ff::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from amd-DAYTONA-X.amd.com (165.204.156.251) by MAXPR01CA0118.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Wed, 12 May 2021 13:12:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f73a81a1-02a4-4d40-1c29-08d91547a1bf X-MS-TrafficTypeDiagnostic: DM5PR12MB1259: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DM5PR12MB1259D53DD6607D2906D3F4E8E6529@DM5PR12MB1259.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y4mU+v+jF6W5CV3RXbnGorlLZHDecA3xppbICVLcdV3RZJhtTshLIwm9Vu21WbKE7lHGkLjQTKgCX7w24V4DqrQl2fYboYx7dIy+LM4NlLe0hornKBbTw38EH7kuoyI++Biu5Qpc+jzo9Xw0FDZELKfoxjx8+VBMVo34+22udSPSffERwy/0uIA8Hja8MLLm/IEScETwwHdQretjstzViqpB2TQeSuihAO3L6mb33MFTXshalLI3yTwo6QeofDuBVqGzpGPWkSBIkMnN7CNI+masi83r9cJFGY2Z918ayseRytquxFNV0Vs0cqQp2I798RZL6FPBAfwucWwdVLP2ODEqYdWwNGxhuSCV1O9oNyJqJjuVz+1HckpBzS4roJltZ6U+gest47JW7yD5ewzTyvinQkx6DYxcOYAlpsdUu1RYa5QErFEkBbuy2LLclb4XA7SFGeIQr2oeZQZ8eaGNehINO0GTuAmNVjlhItZ7/v2JvR4CzluOc91cPUXHGfC4473edLs3D4rxjoMJcJflTJ4kX5poX6PBne1bHo8Xnh1yNMZXdeqlZS7zYh9jM1wFeWPbxY5jinSLyc0G9BDjHFgWmJyrctFO6vaTACsbHpI0xhKvt0c0nMn2Si7AwfaUOIJYnhNewcbLiI1sqhfhN6PsmElXxamcNU8h9+kEfKA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4812.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(346002)(39860400002)(396003)(366004)(376002)(38350700002)(86362001)(52116002)(8676002)(38100700002)(2616005)(316002)(26005)(6666004)(66946007)(6486002)(1076003)(7696005)(54906003)(2906002)(186003)(66556008)(16526019)(478600001)(66476007)(5660300002)(8936002)(83380400001)(36756003)(4326008)(956004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ceEcctGfAHRVStaOT3Iv9rgDsZM6Ip+nG1pwwsd9mJuUFcUTkxhtgYyqbEH3KT8X6ogIKQxuILdiWGlkjAGtnqiRSYIb1L9sc6Hkn9TmETLxot6OdH38KzA3HMAfATFFEOtq6T5K/usOy7HYhBGFN35N/enq12PjcZ6wT9QEfH9CkjqkMdoPazukKIHnoC3KFIkhI3P7KnMwADM/fxXTyll1NIm4BR/C+yMSSSdo88BjXlDzL+TFdmZVteR1LFTz1W6ZB7X/SLuyV5kmR9432hxFBjK/CRY41YOfvLo1CtgdvgM54Q9V1nHsKIySXeNZs7Xft6HBNThFD/hAGC3/boN8xMpMeWDXmqkqrNyVFCQsxuk07WPXonwqCOHUWnmfLMbDGgq2gz+PBlE99i8XTOo9UCfPZn6QlplTqCevmbx0lfHi6F6+jfFakiLyyW9qm1O6DCsE2mYVKn6wDqBqUmksknwie0pU6wyMgSajWjBa7Y1f+UPu7J1aHMG0NvnSK9iciX9e5GZgthvT9cEd0XxzziQ3bAEuTVtkwAFibeuN+arjIt+y+xwXwDyndGDfiHZ5ewRHZNzs1ubEaZQP2yfSh19m8E4PJTQQShdOTauZNkQcxBN16dn1ENK0D+c9WoAxRBkzWJnhmOmEarK6BOwfPEB2c3eEToQKYwgme5T5OUoYabNvC023g+GLny6L5gsBxFpV72YoxtqAGwXhEw62dezW6LuzogrenEjwDIoBXZpgaJXDh/bUPECceE5uNxcxn38sX0Pd29vUIbZRFY3xiwBQtV2QnaVloktRb+uRQwi9jC6z2Y40zwRQHz7pzGqMOBhefByIBRPG9FTUUQzf5TeZp4UNh+wcr+w3mT+IzXqdjs8Mx6VCLAaIpGm/mJmm1SSC2gTbkV3WThW+CCfWZ2t31Q9Pmd8nllyl7MjSW9ynZKJ0byuXTyR5+oM023QXPfnnXzWl/hBZNWEf3yqQ74e8CXi2tbDJtRfNp7VAojfSlBZ56WouyB6lPoR9RxNmIE6Wf54wPnpiTlitjw8hsaf6yytlJ1KukLHJ01PhQ4LyNQmu/iW5yaInMR3aHYHI3l5pndEJz8TLa9fo7okfTwPORtH4xVxnXhM+L2rGKt2eDTebeOFFhZUe4MUN3X2d/a6qVnukFVT5z+Bcf0ari1zmbmt12hWrLjIqS1+16TG6E4N6GJxJnXC5MW/lIdh+jndzM3mx+UXGLRDOpiPI9r2RZoTcvHbgWag0MMJ9esRa7A7A4BdvCZ0dbiIb+sSKOWJB9C7THWfftjbGynwme7d539vFp7Q6rR/Rty110tlIWvdmdNY5hbmtVq7C X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f73a81a1-02a4-4d40-1c29-08d91547a1bf X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4812.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 13:12:45.1472 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: h8OYAuF1AAtEiSk538MpYzk1iwfkYsz2+VvFtj0htH03rXR9ChNB2HVyhPIt+AmJoYXd7po6MmTrTKuckF+veg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1259 Precedence: bulk List-ID: <linux-input.vger.kernel.org> X-Mailing-List: linux-input@vger.kernel.org |
Series |
General bug fixes to amd_sfh driver
|
expand
|
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_client.c b/drivers/hid/amd-sfh-hid/amd_sfh_client.c index d04d6bd4623d..3589d9945da1 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_client.c +++ b/drivers/hid/amd-sfh-hid/amd_sfh_client.c @@ -88,6 +88,7 @@ static void amd_sfh_work(struct work_struct *work) sensor_index = req_node->sensor_idx; report_id = req_node->report_id; node_type = req_node->report_type; + kfree(req_node); if (node_type == HID_FEATURE_REPORT) { report_size = get_feature_report(sensor_index, report_id,