Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4324433pxj; Tue, 8 Jun 2021 11:31:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzoItG5+Og0syNvPIlRPp9MKHaOO/h/ibSPMXVR0VgC9CbEUUJb0h4t5B8SJhmjh5MAZ9O X-Received: by 2002:a17:906:d0c9:: with SMTP id bq9mr24663144ejb.313.1623177076055; Tue, 08 Jun 2021 11:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177076; cv=none; d=google.com; s=arc-20160816; b=J5Ara3/4Q1loV0yO/7Hu9lWP65aVFRe7p6ahUqO9CyAQkThe8FSw16fhseoeOSUJcs jUquBD0quqZTJJWIP+ia9y9oUx8htEsm/6zqKIrsU5VkGIx30ZOT54yKGkl2dYT58G5S FB5ft11OjiKC5tvDkUi0mDTpo5uvrb3mC3MR3fH7pqjxC/IkGQH4EHMXca67ThQSZKRq XdCLJqtZbK+poYg92z9//TLmtzKuF3DJyBA+RSGwUPDIGHi5vCCpJXfZdn5CstTWRCn6 h1WcaloEVu5/BRHRkCvPIsD4V9aeGcPKC5hY4Om5m5sZkZtXS2ai33WrMurusivVyvz0 SW2A== 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=xxii744PYgMkOOiTdHF2EnapU1u7LyDDt+tsJ5eDeqNfYjMvEg+EFxF8zE2DdC84ys Hnxw/7vvLuAjQuyQSFglbg3w/hBM03cV+VJj8scWeEOndtB410BpTqULsWWkJccZKHk5 uocdOZ2iitp9YvfPV1zRuqKf0cYqSONDTbPYsotVoSlykZRMdbneKeBvKmNfNVGLKYv3 S5WEJw7LXdE+Upy0/15D83rAXLWXvDZotOIq49+30puib8wC8ZtKv0JYOvk0r77oXiiv TxXInIyor8vs2bagASdLc27nAiEtEdpRZ8Z8Zqnan9scV4gcK2N//2Cabb7qgtvry+bB xlUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="mGi/fFnk"; 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 j10si289348edp.268.2021.06.08.11.30.51; Tue, 08 Jun 2021 11:31:16 -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="mGi/fFnk"; 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 S231678AbhFHSau (ORCPT + 99 others); Tue, 8 Jun 2021 14:30:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:55062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233372AbhFHSam (ORCPT ); Tue, 8 Jun 2021 14:30:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9163C61380; Tue, 8 Jun 2021 18:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623176917; bh=rsED8s3r44/lFHHL2PzzG5LOJomieDVl4CR1CyvZD0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mGi/fFnk6q055ZrQk8zJlVMiyl8djwLrYnLJJ4vXnP+i13dPPD4LKUHtwpuJLpx+P yV8eVILLXELtTrCKsB73SKbJ5+ZfRvCN5IcEofKcGKD8SIAx6HjesbKgGS+A0I+jp9 Ug9Ac6yG/Tts/Esy3JtiFoAydJCoUl8m59Qphe4E= 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.4 11/23] net: caif: added cfserl_release function Date: Tue, 8 Jun 2021 20:27:03 +0200 Message-Id: <20210608175926.905795153@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175926.524658689@linuxfoundation.org> References: <20210608175926.524658689@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);