summaryrefslogtreecommitdiff
path: root/net/caif
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-06-03 19:38:12 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-03 15:05:06 -0700
commitbce130e7f392ddde8cfcb09927808ebd5f9c8669 (patch)
treeee0df0fd63b911a89401defd7317a62fae7b853a /net/caif
parent4189777ca84f3f576767119a005f810c53f39995 (diff)
downloadlwn-bce130e7f392ddde8cfcb09927808ebd5f9c8669.tar.gz
lwn-bce130e7f392ddde8cfcb09927808ebd5f9c8669.zip
net: caif: added cfserl_release function
Added cfserl_release() function. Cc: stable@vger.kernel.org Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r--net/caif/cfserl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/caif/cfserl.c b/net/caif/cfserl.c
index e11725a4bb0e..40cd57ad0a0f 100644
--- a/net/caif/cfserl.c
+++ b/net/caif/cfserl.c
@@ -31,6 +31,11 @@ static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
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);