Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4340143pxj; Tue, 8 Jun 2021 11:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvSAfVAUBVPHNzjAs2qDxRfXlOZ8JRZfMgM/PdehwKMYz0+1OuAEKVjmabDr3HumRHaG8p X-Received: by 2002:a17:906:c245:: with SMTP id bl5mr24270027ejb.394.1623178529649; Tue, 08 Jun 2021 11:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623178529; cv=none; d=google.com; s=arc-20160816; b=QUBcYDOaKCrth3lWn2aTjAncsDlaI/0bGKmkbq6uZCJopj79Ub2GcdzjMyvqG2dHYZ bwrEBi5Ba4SaMDm04PHTAgU/+8EH/9ZdvafEqilQaQVphzUOr/kTGvKvndaVb4ZmNIFg TYR3Hi4h62+xNqneqZMWTPyBPokc+FlvcjL1Y41mSf6Xq61QKe8Y/1uwk+tLYozvWCPb R7F072uqvE0xkg6lNCDuserY1bpu4NBNR8bUTUhtFNit0IFTjv6OdceseEVxeJXHlxC8 hoa0dDLBjsI4AAPxIuwu+FXd3FvBnuyS1XjBv0ZpcHOJIqjoS2SpvDUgkcVvMjZiqAad bFog== 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=b2KE0B+JVe27fq3jEkxQuaipjyCOg/aKZphiHN5XdK4twFCedr7ra13KaTkXps9hl0 UaKLzk2FNd/ERDu+chdfgm1RgvLW/v86UDWqrOD6o16jrLHTR1tNM0Ix8/TGb+0Ccmgn pu8aGbjtwo5UuD0dcikd3W1qWRxtiOitCyGrgJIVEzSAFIuk/45Dmwk7Un2FbvM6yF0E 0l6t2Ia0iAPkc7GXCIVeNesv0EU+VxeCpdLyscj3/63uweOqCH1E/iQcZAsCXHJC9Epr 7dh3sfc7Rs0xooyYd1xdqKhJ34jP1cxEy1aDI0OQCia+200zyv9QlAiKXkXZ4hq7qWKH iFxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cLIIk1GS; 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 c13si424230ejm.484.2021.06.08.11.55.06; Tue, 08 Jun 2021 11:55:29 -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=cLIIk1GS; 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 S236430AbhFHSyM (ORCPT + 99 others); Tue, 8 Jun 2021 14:54:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:43672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235411AbhFHSsD (ORCPT ); Tue, 8 Jun 2021 14:48:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A6DF61027; Tue, 8 Jun 2021 18:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177501; bh=rsED8s3r44/lFHHL2PzzG5LOJomieDVl4CR1CyvZD0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cLIIk1GSxxgek9X7RBlWD8AomVUn9yPuovO43d/xMG2fh4HMKVpmywG11f+m8fK+T qO/qlClQPWlF9TMvMVYQwwiolaanReyhLoNQCYTZNjwMZYkU3i96wL7CW58OWfM4z2 6yjlWR0jaZhYl7Bf+YCgh0VBpsCvWXS/erT1FOfo= 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.4 40/78] net: caif: added cfserl_release function Date: Tue, 8 Jun 2021 20:27:09 +0200 Message-Id: <20210608175936.615237216@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175935.254388043@linuxfoundation.org> References: <20210608175935.254388043@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);