Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4329796pxj; Tue, 8 Jun 2021 11:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmEA7iV7zfTV+1GtYa0CGsqUIOyWkxDnxz5OeLs8XQLw+F40ipDibgnnKtH0akkI0DCbYW X-Received: by 2002:a17:906:95c8:: with SMTP id n8mr25417006ejy.357.1623177574924; Tue, 08 Jun 2021 11:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177574; cv=none; d=google.com; s=arc-20160816; b=A3w4VvsmlsLWXsx62TdB7lv3SMh9S15Hs87krKMC+B3eU5gYZljSQPDung/3iNYIel bCJQW3oZqayKtuec7q/+il12Gbjg6ex9hSRqf82TUzDWKWKcX/DBRT/N2VkpfeVPnDgB RBA+x2kYuu14YRMBC/BX8RHIYg5/YER063Q5L+nNCBn0EbcG+rgXfF9l44CghhBjLf56 NMi11luaplwCaoEwCNghbX6i7jUFrvAljjIZR/sFxNg/W0VOdDg902YNZGIF+o1qusz8 I2mmEgxhvsWCAICff/HFrfEQkNT51OjAYkoj394qNgcALJyR0zdXGLdwqwG+KCMeOFfx qKHA== 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=Y2BSaOk+ULAbNZeKytrBYvrq39uJOcCkPoDJEhli7VqAJPwznJf1fVDneEIku6FjSh iRsNphh2QyRjvtma99aWCFjJSIj45IJHHaQI8fnO9dUOLpeNEg0BOpYUcMWI8xzDNIsQ XAi5AfpQPjqo31H5CErKU1IIeZML3xvuJZcsl/agpyh+hKRdZfUQIK8Lg3MCBsdtJsJu 8vUeA8w91KLkTp1KmvFCBsSYRdzoZsLwfd/7Q6uwHS+9LsxZ6TzC+riAXwBTPRk3wfH+ gpUjRbQn0ah5896kvsdBbrmHpuPd0AD2jBYA0lzKMhPTkF3QEHX5zXHbLi8SzBzy+0Zk gDbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FRHSfsd8; 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 v7si438591edj.541.2021.06.08.11.39.11; Tue, 08 Jun 2021 11:39:34 -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=FRHSfsd8; 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 S234967AbhFHShi (ORCPT + 99 others); Tue, 8 Jun 2021 14:37:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:56768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234340AbhFHSfg (ORCPT ); Tue, 8 Jun 2021 14:35:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1A2B261405; Tue, 8 Jun 2021 18:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177141; bh=rsED8s3r44/lFHHL2PzzG5LOJomieDVl4CR1CyvZD0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FRHSfsd8ZdHLx7XaDT8iIIeYTMorRDJXdMSS1iaRuMvM14IhdHfn9xkV7ZjYijIB0 sFLQQZRcZ14pLfeJ3U571Iq5WdSFrTJz60ksxgAXtZzbWOaoMdwADvIVRgwVfSZulA CGx3gPUTRFLu8Fj+d4YeRBfhviWji4f97WUJ8HCI= 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.14 15/47] net: caif: added cfserl_release function Date: Tue, 8 Jun 2021 20:26:58 +0200 Message-Id: <20210608175930.981842019@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175930.477274100@linuxfoundation.org> References: <20210608175930.477274100@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);