From: Veaceslav Falico Date: Wed, 21 May 2014 15:42:00 +0000 (+0200) Subject: bonding: populate essential new_slave->bond/dev early X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~163^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc73c41f4e0bdc3e43b6247d2b35e927739f1d9f;p=pandora-kernel.git 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 CC: Andy Gospodarek Signed-off-by: Veaceslav Falico Acked-by: Ding Tianhong Signed-off-by: David S. Miller --- Reading git-diff-tree failed