OSDN Git Service

greybus: use outgoing flag when creating operation
authorAlex Elder <elder@linaro.org>
Mon, 1 Dec 2014 13:53:06 +0000 (07:53 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Dec 2014 04:40:35 +0000 (20:40 -0800)
commit94b15d7613e861563b9f06fac2c273ca8e2fc269
tree0c6bd7c70128ce26feac38f58f6d3a10dcb4f285
parent615772aace9c87bdcae038cea37c69c85373dba4
greybus: use outgoing flag when creating operation

In gb_operation_create_common(), a zero response size is still
being used to determine whether to use GFP_KERNEL or GFP_ATOMIC
when allocating a message.  Use the value of the "outgoing"
parameter to decide this instead.

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