diff options
| author | Tetsuo Handa <[email protected]> | 2021-03-22 07:52:07 +0900 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2021-03-22 17:04:22 +0100 |
| commit | be8597239379f0f53c9710dd6ab551bbf535bec6 (patch) | |
| tree | 2b4061f449dcf5d99ca7103c84c972cad840c295 /tools/perf/scripts/python/sched-migration.py | |
| parent | 07528783c7da0b711385f0033a836453b5ec0c9c (diff) | |
Bluetooth: initialize skb_queue_head at l2cap_chan_create()
syzbot is hitting "INFO: trying to register non-static key." message [1],
for "struct l2cap_chan"->tx_q.lock spinlock is not yet initialized when
l2cap_chan_del() is called due to e.g. timeout.
Since "struct l2cap_chan"->lock mutex is initialized at l2cap_chan_create()
immediately after "struct l2cap_chan" is allocated using kzalloc(), let's
as well initialize "struct l2cap_chan"->{tx_q,srej_q}.lock spinlocks there.
[1] https://syzkaller.appspot.com/bug?extid=fadfba6a911f6bf71842
Reported-and-tested-by: syzbot <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions