Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4853165pxj; Wed, 9 Jun 2021 03:35:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq0jQMacDIQROc5Z1VAnpEBip6P83X3m8Zn4+M1TIUUyLG+jBI19XJeM63J2g3Lc6vQYh6 X-Received: by 2002:a17:907:1117:: with SMTP id qu23mr28043972ejb.71.1623234926074; Wed, 09 Jun 2021 03:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623234926; cv=none; d=google.com; s=arc-20160816; b=DApVVeBYL0AyApDcuNr4NbkIQzbT3kjGkQYqQYptGne/atmcM69+81ZDghKJ3A+4G6 B0AN0aKmIG9GCkqpTFp7G5876I3658nCaCaZ1EUaFTR1xG/vh6IZg/uMG9fq8K0WfYCL lMk5YhuqH1+zUgaaXlYcqBPR2CqGLnoiVjN/PxQjYCwZLYHs6j7MUglFwKn4sKmy9Ydx WyOIsu3GEPfnDbjfC+Vi8bg6P/5XjCYsLlLl00wazsKOXqnCcJ2xV3oVmGjk/iq0Cw70 EiJROAm/pFDgrlDEFW6coNNs+V+TOrg5iTO4PbiS/1IE6+l6I7oBra4f8dhEVxk6EInZ aM7w== 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=PSEDKgKdv/r8h8UBT9f7YfHj2awQD0S1nfgSx0so3mNVhorWevEoPl/Mx6WuYwcZQj yqJa+rmSDDn5Sprybu/2mv916zDSWGSFGAHl+s6SE/3WnsOoif3IsrDBu5lgBipByr0m 1TaJCMOLs2DD1ujE5Dd7j82s6kWDtVR9ywKju/ZSLxN54X70TwAik+IZTnp49CLCjnAe /5CeasFjqswT+eNOVkEn41jmXFr6Hy7sjZbuN9giyuZ/wK49p9SyoJ+9PfTf1Z+E/LAa uSBTP38Y4lTGdxv1qvWaVjgEOJPtiAAAFcayrn2sir00GqnIACRmNh9Atr9iaLyUkVg3 hdZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eeWSVFkR; 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 c13si2066709ejm.484.2021.06.09.03.35.03; Wed, 09 Jun 2021 03:35:26 -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=eeWSVFkR; 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 S236517AbhFHTG5 (ORCPT + 99 others); Tue, 8 Jun 2021 15:06:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:35352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236250AbhFHS6G (ORCPT ); Tue, 8 Jun 2021 14:58:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 696DF61623; Tue, 8 Jun 2021 18:42:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177757; bh=rsED8s3r44/lFHHL2PzzG5LOJomieDVl4CR1CyvZD0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eeWSVFkR6twhmes8gRVYdyjSbyS2jFs2rlHu5nZyRFSDcJxietA0qfmMiQ/He+vtU ZYZE3Lz2wF36E2e0mmbGgXBKAt4Dng0umSUm5ztV4YOZiEGWjdU4K1tqPndASJGh1D cLCY9whUYx8uPYgL1qhFucCegX1ju97I9v7tqCJM= 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 5.10 089/137] net: caif: added cfserl_release function Date: Tue, 8 Jun 2021 20:27:09 +0200 Message-Id: <20210608175945.385435036@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175942.377073879@linuxfoundation.org> References: <20210608175942.377073879@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);