greybus: protocol: fix oops when no protocol is assigned
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 21:12:10 +0000 (13:12 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 2 Jan 2015 21:06:48 +0000 (13:06 -0800)
commit23ad7bb96bb59e1f91a95a494cca303a8f7d300a
tree15fc7a92dcfa6fd81de2b564cfcd803644359eed
parent7422a1ec2e208762cacd3c3368e6313046b3e3d5
greybus: protocol: fix oops when no protocol is assigned

When removing a connection with no protocol assigned to it, the kernel
oopses as we always thought protocols were always there.

Fix that problem, oopses are bad.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/protocol.c