commit | c2f792382bc23bddd67a5da72faf9d46bf0f3ef9 | [log] [tgz] |
---|---|---|
author | Alexandre Bailon <abailon@baylibre.com> | Thu Jan 22 15:23:37 2015 +0800 |
committer | Greg Kroah-Hartman <greg@kroah.com> | Thu Jan 22 21:15:23 2015 +0800 |
tree | 3383f09380a4185246d70e1ada2609b54ab34b81 | |
parent | 89210f64bae6bd6bba90d9e08d1b88b4ba103f59 [diff] |
greybus: protocol.c: fix a kernel panic caused by __gb_protocol_register __gb_protocol_register check if the protocol is not already registred, and then register it. It register in existing->lists but at this point, existing is always NULL (we exist just before if not). Use gb_protocols instead. Signed-off-by: Alexandre Bailon <abailon@baylibre.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>