[PATCH 5.10 112/139] bonding: fix error checking in bond_debug_reregister()