Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f52ebeab authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: RMNET: smd_ctrl: Fix crash if platform driver register fails"

parents 767f944b 12a30869
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -398,7 +398,9 @@ static void grmnet_ctrl_smd_connect_w(struct work_struct *w)
	if (!test_bit(CH_READY, &c->flags)) {
		if (!test_bit(CH_PREPARE_READY, &c->flags)) {
			set_bit(CH_PREPARE_READY, &c->flags);
			platform_driver_register(&(port_entry->pdrv));
			ret = platform_driver_register(&(port_entry->pdrv));
			if (ret)
				clear_bit(CH_PREPARE_READY, &c->flags);
		}
		return;
	}