greybus: operation: fix null-deref on operation cancel
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 Mar 2015 11:41:16 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:13:01 +0000 (15:13 +0200)
commit772f3e90605641592435ec7c0a960e858925a0fe
treee5020a1982754cd131eda9c6ae9443f5f379cddf
parentff65be7a58201ca7843813f92192d997a2a4b4ee
greybus: operation: fix null-deref on operation cancel

Incoming operations are created without a response message. If an
operation were to be cancelled before it has been fully processed (e.g.
on connection destroy), we would get a null-pointer dereference in
gb_operation_cancel.

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