mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
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>
This commit is contained in:
parent
4ccb6b7abb
commit
4b640bb135
1 changed files with 2 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue