mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
greybus: connection: fix jump label on device_add failure
On device_add() failure in gb_connection_create_range() we jump to err_remove_ida. Instead we should be jumping to err_free_connection, so change the flow to accomodate. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
bf81454738
commit
8ebc998f5f
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ gb_connection_create_range(struct greybus_host_device *hd,
|
|||
pr_err("failed to add connection device for cport 0x%04hx\n",
|
||||
cport_id);
|
||||
|
||||
goto err_remove_ida;
|
||||
goto err_free_connection;
|
||||
}
|
||||
|
||||
spin_lock_irq(&gb_connections_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue