Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1286719rdb; Mon, 2 Oct 2023 05:19:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNe2lBwNVo4D4BdQQB78yExRoKwjdh1Uopfle5VAj+SlqGWj5MJBPFetMm+bktqc8JVv2o X-Received: by 2002:a05:6830:1d83:b0:6be:fdab:dc59 with SMTP id y3-20020a0568301d8300b006befdabdc59mr10776345oti.20.1696249191190; Mon, 02 Oct 2023 05:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696249191; cv=none; d=google.com; s=arc-20160816; b=tM6ijChXsU+ZTsJPJ5golMN/VpcB4btUEr3bsRELelYHXE89VoQ2NdWJcLU1CDKA9C 39VLH6ldOsMyTbOc4tGxg57jaIwc0OKESqKgYOvYGfr/V/HP5WlBHsCeoYXdZ8e7nJ5Q 9JP6WdDbFD4tC2onKK0ssX/4W0Tk5GwYAm60IUxC4GhKZQhy+SCPMSsHCNwybixaw8L8 4QAJ/mdUEocLHQIakYd361WLOlTQvAp+XBJmYzsYvUwIWARvySD/xJbdkVEvPGlpEjQK fp/2L+9g8gTDJDK36PmKLIK64pJej2f7hUa7oyV5dDQrrx5NT6WsbSpo8HehrM/uUiB8 deeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :subject:cc:to:from:message-id:dkim-signature; bh=KbiIDVqYx/Hqu7Kevx/zAeGKtx3irkDPMTvz4wlChv4=; fh=aXZP9pmpVi9BEN0hkl7DS0oRwdUevA3oDSW2PJtfFWA=; b=c119bnzdsx2FWefMPUb9S2/0b13EjRh6zgoQPtu4AMDdD3I6/gcAeIOa+gZN5DMb56 LJ4QVjz6+n4oYLlHOga1mbG0snsMDB+89UH1mWlt1pNpbCI4hdfOwcW2330wwOwk0OLR Zkdy8AQ0N/jnxSRn/xAT788lS8Ypzk5jftAgzKX9Jf4Z/SajGoRCw0UMWrWIbU2Qi5fI 02vCIUjZyhMdqpCceOg/qdhAt9WaoSr35BskYrWia16+APd7UHrrI54di55ItpyqLj73 Tk9ZDzRn6jhzmHRX03NdI5em/1bS378lwzTS54dhBn0MiFv7Zgnx2B7ga5RFse6Gp8+R cOrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=mfac03Lu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s63-20020a632c42000000b00570979732e4si7794427pgs.392.2023.10.02.05.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 05:19:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=mfac03Lu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2661A80A4403; Sun, 1 Oct 2023 23:31:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235517AbjJBGbL (ORCPT + 99 others); Mon, 2 Oct 2023 02:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235457AbjJBGbK (ORCPT ); Mon, 2 Oct 2023 02:31:10 -0400 Received: from out203-205-221-155.mail.qq.com (out203-205-221-155.mail.qq.com [203.205.221.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5172FE8; Sun, 1 Oct 2023 23:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1696228263; bh=KbiIDVqYx/Hqu7Kevx/zAeGKtx3irkDPMTvz4wlChv4=; h=From:To:Cc:Subject:Date; b=mfac03LuS3zTSwIIuhTsXvT0B/PgViy6NmQxx/frvdXKF6MknoODnkNmeUpXgW76n /TYSMv33StajqusXlMWCC0Mexscp1fbu6LMByoxUPGnpwEnYgkwWTJ45WKJ2AT0MKV fVms1Kl/UOXkxY3V4HvKyZr8bTREhsUXY9u5ApGA= Received: from localhost ([124.78.196.55]) by newxmesmtplogicsvrszb6-0.qq.com (NewEsmtp) with SMTP id 7C122A29; Mon, 02 Oct 2023 14:31:01 +0800 X-QQ-mid: xmsmtpt1696228261taj4szpb8 Message-ID: X-QQ-XMAILINFO: M5WvXNp9ZPrQGtd5IHGbwdgtJZjE+w5pzFBDCvedbjBktYVltEqzVY05h5rmS+ qH6SjIWcXI6XoALOYbOPYs0tmpW14SCV4ShX8Gafjqq4NUgJkj5/G0sr4helmMAN2Usx8ljvOqCY 4zqF8VdzpaHAvMhgDUx7o/UKt4MtUI9+xt/xGJowUIVHdx9R1pnEZxaofUNOagqHCtrS+GziGh4y +gQNI5CvVyEFAGMQS7BdgVRczeAl6l70FG0E0kkQlA0QWAaEakoiWHw2Nb9sywvyZjsv9TUy2kJT PLGq90xID07ztU1CxahPHdV51Y0TRzV5xHX5L6OFi0S3WWyBZT9KIV9vSUBqBg2XRX/V/OST4SHt Ty+fU0HdIWk0KWJQetVL3eoH2Fg3AOKtbVdWZCXMRp1KFccLpSuCYH0mVr7a8cMxhXnDC3Vw23ZD MOX2EDYN7+xJu+Ovo3JB1D+CKkIPAzl8/C0IZJzLKP8ND3QJVqVCUPc/cO+7HRJtzpqo6eAEMENs GdSjycfHjuF4uFgQ5UxhMDqtkwJoPZnwUl7f5cB4bWSlXWXZtpCcqTC1PNNnnaX4KRKd671rzQL1 9gQOzlPZ+g6nyh6L3gH0l/ss3di3kd6t3L9etwSVu1QR5ZyYsnBsno3div2ggWECuOPXVbH3LG1y 1+gDaE+6S/PO+bNW1/rPffvWk0lyykPjjmECERU7bvVkOTBA5eO7apM9Q5xDJnZnYZcY35wQhffL M/yyfcFxsrvLibK56B1Gx/jS/F/ts3r/WaR2O9tVDNukgDYQVKgOkDb/Mjk0yStSLgPnSaB4Kggu npx35ejNFLTcGZ/Oy74OcPd0qdy0mZ7FL068/OsNJdkZY5J66RChhen45uRZzY9p0PTZbgPCpFVn +/Zyq57+e6tHfA9QvRM+ZIZazfNJi0BoqGtAaz8cCTy+nWZMDqYIcIWEjzw+JE5eT3OqkxoGnAVb s7yUHirftSzPA2ob70cWcsTNfNKqkN X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= From: Woody Zhang To: Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Woody Zhang Subject: [PATCH 0/2] spi: sunxi: Fix memory leak on device removal Date: Mon, 2 Oct 2023 14:29:57 +0800 X-OQ-MSGID: <20231002062957.1741396-1-woodylab@foxmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 01 Oct 2023 23:31:41 -0700 (PDT) Call spi_master_put to free the spi_master structure on device removal and driver detachment. Woody Zhang (2): spi: sun6i: Fix memory leak on device removal spi: sun4i: Fix memory leak on device removal drivers/spi/spi-sun4i.c | 3 +++ drivers/spi/spi-sun6i.c | 1 + 2 files changed, 4 insertions(+) -- 2.39.2