diff options
| author | Di Zhu <[email protected]> | 2021-06-23 03:21:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-23 20:43:44 +0000 |
| commit | 4d293fe1c69c157c15ac06918a805e5fef036682 (patch) | |
| tree | be3ace5762dae19b14a72be3c6dd42647fa1675c /drivers/fpga/of-fpga-region.c | |
| parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff) | |
| download | kernel-4d293fe1c69c157c15ac06918a805e5fef036682.tar.gz kernel-4d293fe1c69c157c15ac06918a805e5fef036682.zip | |
bonding: allow nesting of bonding device
The commit 3c9ef511b9fa ("bonding: avoid adding slave device with
IFF_MASTER flag") fix a crash when add slave device with IFF_MASTER,
but it rejects the scenario of nested bonding device.
As Eric Dumazet described: since there indeed is a usage scenario about
nesting bonding, we should not break it.
So we add a new judgment condition to allow nesting of bonding device.
Fixes: 3c9ef511b9fa ("bonding: avoid adding slave device with IFF_MASTER flag")
Suggested-by: Jay Vosburgh <[email protected]>
Signed-off-by: Di Zhu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions
