summaryrefslogtreecommitdiff
path: root/trafgen_l4.h
blob: 9537cbf3f49eb4d98025ed68533dacbaa92ff69d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef TRAFGEN_L4_H
#define TRAFGEN_L4_H

enum udp_field {
	UDP_SPORT,
	UDP_DPORT,
	UDP_LEN,
	UDP_CSUM,
};

enum tcp_field {
	TCP_SPORT,
	TCP_DPORT,
	TCP_SEQ,
	TCP_ACK_SEQ,
	TCP_DOFF,
	TCP_CWR,
	TCP_ECE,
	TCP_URG,
	TCP_ACK,
	TCP_PSH,
	TCP_RST,
	TCP_SYN,
	TCP_FIN,
	TCP_WINDOW,
	TCP_CSUM,
	TCP_URG_PTR,
};

enum icmpv4_field {
	ICMPV4_TYPE,
	ICMPV4_CODE,
	ICMPV4_CSUM,
	ICMPV4_ID,
	ICMPV4_SEQ,
	ICMPV4_REDIR_ADDR,
	ICMPV4_MTU,
};

enum icmpv6_field {
	ICMPV6_TYPE,
	ICMPV6_CODE,
	ICMPV6_CSUM,
};

extern void protos_l4_init(void);

#endif /* TRAFGEN_L4_H */
div class='commit-subject'>usb: host: xhci: Fix possible wild pointer when handling abort command
When current command was supposed to be aborted, host will free the command in handle_cmd_completion() function. But it might be still referenced by xhci->current_cmd, which need to set NULL. Cc: <stable@vger.kernel.org> Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat
-rw-r--r--drivers/usb/host/xhci-ring.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c