[PATCH 5.4 028/131] team: fix null-ptr-deref when team device type is changed