提交 bce130e7 编写于 作者: P Pavel Skripkin 提交者: David S. Miller

net: caif: added cfserl_release function

Added cfserl_release() function.

Cc: stable@vger.kernel.org
Signed-off-by: NPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4189777c
...@@ -9,4 +9,5 @@ ...@@ -9,4 +9,5 @@
#include <net/caif/caif_layer.h> #include <net/caif/caif_layer.h>
struct cflayer *cfserl_create(int instance, bool use_stx); struct cflayer *cfserl_create(int instance, bool use_stx);
void cfserl_release(struct cflayer *layer);
#endif #endif
...@@ -31,6 +31,11 @@ static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt); ...@@ -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, static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
int phyid); int phyid);
void cfserl_release(struct cflayer *layer)
{
kfree(layer);
}
struct cflayer *cfserl_create(int instance, bool use_stx) struct cflayer *cfserl_create(int instance, bool use_stx)
{ {
struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC); struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册