diff options
author | Veaceslav Falico | 2014-05-21 17:42:00 +0200 |
---|---|---|
committer | David S. Miller | 2014-05-22 21:46:34 +0200 |
commit | dc73c41f4e0bdc3e43b6247d2b35e927739f1d9f (patch) | |
tree | daeb30d3587f850f6cb805578305e153a8237339 /mm/bounce.c | |
parent | Merge branch 'genphy' (diff) | |
download | kernel-qcow2-linux-dc73c41f4e0bdc3e43b6247d2b35e927739f1d9f.tar.gz kernel-qcow2-linux-dc73c41f4e0bdc3e43b6247d2b35e927739f1d9f.tar.xz kernel-qcow2-linux-dc73c41f4e0bdc3e43b6247d2b35e927739f1d9f.zip |
bonding: populate essential new_slave->bond/dev early
The new bond_free_slave() needs new_slave->bond to verify if additional
structures were allocated, so populate it early so that, in case of failure
in bond_enslave(), we would be able to get it.
Also populate the new_slave->dev field, as it's too one of the most needed
things to assign early.
CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Acked-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/bounce.c')
0 files changed, 0 insertions, 0 deletions