diff options
author | Thomas Gleixner <[email protected]> | 2015-06-21 20:16:09 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2015-06-25 11:57:04 +0200 |
commit | 1e105921368b10b941bdbf252a156dc6171a6a6b (patch) | |
tree | 409042a3d119fbe83f5e360bdb239e5403c921dd /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 2cf5a03cb29debb00681a8af1dfa9179b43404d1 (diff) |
pinctrl/mediatek: 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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Julia Lawall <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Hongzhou Yang <[email protected]>
Cc: Axel Lin <[email protected]>
Cc: Yingjoe Chen <[email protected]>
Cc: Maoguang Meng <[email protected]>
Cc: Colin Ian King <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions