Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4326731pxj; Tue, 8 Jun 2021 11:34:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrbW5wsCrpO/V7HlhuHpc7dNSXXEv93nflURDZF7tnVayiicpgznGSKNfiv7KKiCSdqooj X-Received: by 2002:a17:906:85d5:: with SMTP id i21mr22835485ejy.360.1623177288143; Tue, 08 Jun 2021 11:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177288; cv=none; d=google.com; s=arc-20160816; b=be3COSRwZavJ5+IOGTKDRNUB3mziJXWkpn36ri6FakuwHrZCR57BRsJCTj5rbvq84g 7DjpPRMiDGJm3HU5rc1C6ND3codaxlFl+s8XpWqeRrlrnfp8j2JQNdeKWiUT7EZ5RigL oB7YEEy4gjNNfthYOSbvtrmPlEaT6xdS+/DsrtxTvx7pNryHIgfsawXemwWs1ziaObnd Ha30Rov0hLvlEVGEH8cHyp4y02taJnNK3hJImp+l5PqjNk5H2pmlQ7ZOvNlPlYVbU7g3 jAIs8/CdAwB+0GA0Jz2gmtZSgiHXl3xlxlHv9g8p8xwzwD6pFZvzRrYvizRFnUQAkABe bx9w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=k9T7plvRFi/qJpK3RtwdKHNv/sfX032UYUsOzuafRhM=; b=pPSt6X1YqfH2NyxXFTP53q7uWs3eC6B4Kgm1fBGHtn8slj1Pl7tg/pO+ZaK0kscOWC 3Q6J3rr8HyRrQFzyemaZgyGeA7+GVrVVgcZWPmGq5kZmgg9F4RWq0ZeZVoz2phCA4iGk WcSRnxx70+hp59lNy5NHk9hR9Mqr/Pj+Dp1Q2nlSniVvOEuZ4DcK46XTjxs7EmlhnKJ6 XW3v8Gxwok3rWM8zdLBV2I7nXjwiNUdH4gjaPj+kQ1ueJQAAmUOwkDQ9uj6yacKxKOAQ GAUuExy4Ae8EA/lLneyCF+RGnmcObxYub90tOZEl+hyEEZZXGu9zhXd/eU3hMDuxwSR3 C0qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BT+ZhVSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si365946edu.100.2021.06.08.11.34.22; Tue, 08 Jun 2021 11:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BT+ZhVSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234656AbhFHSdv (ORCPT + 99 others); Tue, 8 Jun 2021 14:33:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:57666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234447AbhFHSch (ORCPT ); Tue, 8 Jun 2021 14:32:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 96381613BF; Tue, 8 Jun 2021 18:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177030; bh=rsED8s3r44/lFHHL2PzzG5LOJomieDVl4CR1CyvZD0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BT+ZhVSHlfYcHTq2tbg5jeAnPZ557mbV7qY7CGHicOXL4gyTUcELiY5S7TxznlOgN SQWThB1EyWPQpQDO8Hrudrb9CiR3bN0BbtPJkHwvIVri/dTbYD1GSQYp4t9oUyqRG9 iyltkdu/AdbWa07z72dG4s+zEGONiqLEd1oyqHyk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pavel Skripkin , "David S. Miller" Subject: [PATCH 4.9 15/29] net: caif: added cfserl_release function Date: Tue, 8 Jun 2021 20:27:09 +0200 Message-Id: <20210608175928.313977485@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175927.821075974@linuxfoundation.org> References: <20210608175927.821075974@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pavel Skripkin commit bce130e7f392ddde8cfcb09927808ebd5f9c8669 upstream. Added cfserl_release() function. Cc: stable@vger.kernel.org Signed-off-by: Pavel Skripkin Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- include/net/caif/cfserl.h | 1 + net/caif/cfserl.c | 5 +++++ 2 files changed, 6 insertions(+) --- a/include/net/caif/cfserl.h +++ b/include/net/caif/cfserl.h @@ -9,4 +9,5 @@ #include struct cflayer *cfserl_create(int instance, bool use_stx); +void cfserl_release(struct cflayer *layer); #endif --- a/net/caif/cfserl.c +++ b/net/caif/cfserl.c @@ -31,6 +31,11 @@ static int cfserl_transmit(struct cflaye static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid); +void cfserl_release(struct cflayer *layer) +{ + kfree(layer); +} + struct cflayer *cfserl_create(int instance, bool use_stx) { struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);