commit | 4b640bb1357a3eed16a04b23167dc3de4294dcd9 | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <greg@kroah.com> | Wed Oct 29 09:57:08 2014 +0800 |
committer | Greg Kroah-Hartman <greg@kroah.com> | Wed Oct 29 09:57:08 2014 +0800 |
tree | fd91570adcb1a2cf34288dd46e143c8ac8fc91c9 | |
parent | 4ccb6b7abb8ee4ff6fc28468ffe893caa730ea13 [diff] |
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>