Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pavel Skripkin and committed by
David S. Miller
bce130e7 4189777c

+6
+1
include/net/caif/cfserl.h
··· 9 9 #include <net/caif/caif_layer.h> 10 10 11 11 struct cflayer *cfserl_create(int instance, bool use_stx); 12 + void cfserl_release(struct cflayer *layer); 12 13 #endif
+5
net/caif/cfserl.c
··· 31 31 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, 32 32 int phyid); 33 33 34 + void cfserl_release(struct cflayer *layer) 35 + { 36 + kfree(layer); 37 + } 38 + 34 39 struct cflayer *cfserl_create(int instance, bool use_stx) 35 40 { 36 41 struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);