mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
tr: fix leakage of device in net/802/tr.c
Add dev_put() after dev_get_by_index() to avoid leakage of device. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d6c519e129
commit
3384901f1b
1 changed files with 3 additions and 0 deletions
|
|
@ -561,6 +561,9 @@ static int rif_seq_show(struct seq_file *seq, void *v)
|
|||
}
|
||||
seq_putc(seq, '\n');
|
||||
}
|
||||
|
||||
if (dev)
|
||||
dev_put(dev);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue