greybus: connection: fix up error patch logic in gb_connection_create()

Once you have called device_initialize() you have to call put_device()
on the structure to clean it up on an error path, otherwise you will
leak memory.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
1 file changed
tree: fd91570adcb1a2cf34288dd46e143c8ac8fc91c9
  1. drivers/