greybus: es2: fix arpc response-allocation error handling
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 27 Jul 2016 14:37:20 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 28 Jul 2016 17:04:06 +0000 (10:04 -0700)
commitfcba5d04c87c5c0174f159d26b295a46bfb6da58
tree316a92886c71e94f2a925d78f043a029435332af
parent23931ffb9ac892a51cdef4eefdfc255e3f810a8b
greybus: es2: fix arpc response-allocation error handling

The wrong pointer was checked for allocation failures when allocating
the ARPC response buffer, something which would lead to allocation
failures going undetected.

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