.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * SNAP data link layer. Derived from 802.2 |
---|
3 | 4 | * |
---|
4 | 5 | * Alan Cox <alan@lxorguk.ukuu.org.uk>, |
---|
5 | 6 | * from the 802.2 layer by Greg Page. |
---|
6 | 7 | * Merged in additions from Greg Page's psnap.c. |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License |
---|
10 | | - * as published by the Free Software Foundation; either version |
---|
11 | | - * 2 of the License, or (at your option) any later version. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
34 | 30 | { |
---|
35 | 31 | struct datalink_proto *proto = NULL, *p; |
---|
36 | 32 | |
---|
37 | | - list_for_each_entry_rcu(p, &snap_list, node) { |
---|
| 33 | + list_for_each_entry_rcu(p, &snap_list, node, lockdep_is_held(&snap_lock)) { |
---|
38 | 34 | if (!memcmp(p->type, desc, 5)) { |
---|
39 | 35 | proto = p; |
---|
40 | 36 | break; |
---|