summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-06-03 19:38:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-10 12:42:36 +0200
commit9eb4fd7fb51166b2fdda0fda330c03902dca89ac (patch)
treefb7bb69c72e9dc959c3d93fd7323891898235a20 /net
parent3c62132da179fd30531958d51c68ba4915996556 (diff)
downloadlinux-stable-9eb4fd7fb51166b2fdda0fda330c03902dca89ac.tar.gz
linux-stable-9eb4fd7fb51166b2fdda0fda330c03902dca89ac.tar.bz2
linux-stable-9eb4fd7fb51166b2fdda0fda330c03902dca89ac.zip
net: caif: added cfserl_release function
commit bce130e7f392ddde8cfcb09927808ebd5f9c8669 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-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 ce60f06d76de..af1e1e36dc90 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);