summaryrefslogtreecommitdiff
path: root/linktype.h
blob: 80b5f2df82648eff9ee6e2ddbd989f17109c9ab3 (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
/*
 * netsniff-ng - the packet sniffing beast
 * Copyright 2009 - 2013 Daniel Borkmann.
 * Subject to the GPL, version 2.
 */

#ifndef LINKTYPE_H
#define LINKTYPE_H

#define LINKTYPE_NULL				0
#define LINKTYPE_EN10MB				1
#define LINKTYPE_EN3MB				2
#define LINKTYPE_AX25				3
#define LINKTYPE_PRONET				4
#define LINKTYPE_CHAOS				5
#define LINKTYPE_IEEE802			6
#define LINKTYPE_SLIP				8
#define LINKTYPE_PPP				9
#define LINKTYPE_FDDI				10
#define LINKTYPE_ATM_CLIP			19
#define LINKTYPE_C_HDLC				104
#define LINKTYPE_IEEE802_11			105
#define LINKTYPE_FRELAY				107
#define LINKTYPE_LINUX_SLL			113
#define LINKTYPE_ECONET				115
#define LINKTYPE_IEEE802_11_RADIOTAP		127
#define LINKTYPE_ARCNET_LINUX			129
#define LINKTYPE_LINUX_IRDA			144
#define LINKTYPE_CAN20B				190
#define LINKTYPE_IEEE802_15_4_LINUX		191
#define LINKTYPE_INFINIBAND			247
#define LINKTYPE_NETLINK			253
#define LINKTYPE_MAX				254

#endif
aaf25473ebd0f1337a0'>bb56fc3577ea38ee6f7d4aaf25473ebd0f1337a0 (diff)
pinctrl/samsung: Fix race in installing chained IRQ handler
Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). Search and conversion was done with coccinelle: @@ expression E1, E2, E3; @@ ( -if (irq_set_chained_handler(E1, E3) != 0) - BUG(); | -irq_set_chained_handler(E1, E3); ) -irq_set_handler_data(E1, E2); +irq_set_chained_handler_and_data(E1, E3, E2); @@ expression E1, E2, E3; @@ ( -if (irq_set_chained_handler(E1, E3) != 0) - BUG(); ... | -irq_set_chained_handler(E1, E3); ... ) -irq_set_handler_data(E1, E2); +irq_set_chained_handler_and_data(E1, E3, E2); Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Thomas Abraham <thomas.abraham@linaro.org> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-gpio@vger.kernel.org
Diffstat (limited to 'drivers/pinctrl')