mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
drivers/net/hamradio: fix sparse warning: context imbalance
Impact: Attribute functions with __acquires(...) resp. __releases(...). Fix this sparse warnings: drivers/net/hamradio/bpqether.c:387:13: warning: context imbalance in 'bpq_seq_start' - wrong count at exit drivers/net/hamradio/bpqether.c:419:13: warning: context imbalance in 'bpq_seq_stop' - unexpected unlock Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eb33ae2486
commit
e334f564e8
@ -386,6 +386,7 @@ static int bpq_close(struct net_device *dev)
|
|||||||
* Proc filesystem
|
* Proc filesystem
|
||||||
*/
|
*/
|
||||||
static void *bpq_seq_start(struct seq_file *seq, loff_t *pos)
|
static void *bpq_seq_start(struct seq_file *seq, loff_t *pos)
|
||||||
|
__acquires(RCU)
|
||||||
{
|
{
|
||||||
int i = 1;
|
int i = 1;
|
||||||
struct bpqdev *bpqdev;
|
struct bpqdev *bpqdev;
|
||||||
@ -418,6 +419,7 @@ static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void bpq_seq_stop(struct seq_file *seq, void *v)
|
static void bpq_seq_stop(struct seq_file *seq, void *v)
|
||||||
|
__releases(RCU)
|
||||||
{
|
{
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user