OSDN Git Service

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

Incoming operations are created without a response message. If a
protocol driver fails to send a response, or if the operation were to be
cancelled before it has been fully processed, we get a null-pointer
dereference when the operation is released.

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