mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
net: caif: added cfserl_release function
commit bce130e7f3 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>
This commit is contained in:
parent
df3b45f6d1
commit
dac53568c6
|
|
@ -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);
|
||||||
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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user