summaryrefslogtreecommitdiffstats
path: root/net/caif
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 13:39:24 +0200
commitdac53568c6ac4c4678e6c2f4e66314b99ec85f03 (patch)
tree081b47d2fd87c20ce87f980af7025f1f95670b83 /net/caif
parentdf3b45f6d1ce605120750b983fc4448e3769619a (diff)
downloadlinux-stable-dac53568c6ac4c4678e6c2f4e66314b99ec85f03.tar.gz
linux-stable-dac53568c6ac4c4678e6c2f4e66314b99ec85f03.tar.bz2
linux-stable-dac53568c6ac4c4678e6c2f4e66314b99ec85f03.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/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);