coresight: perf: deal with error condition properly
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 8 Sep 2016 22:50:38 +0000 (16:50 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2016 11:52:59 +0000 (13:52 +0200)
commit8e67cdbc2f7b57bc1448c505ce5c20e60238728b
treedf128c8ebe563e049eb5006ca0b50a91f6e8907d
parent3ba1eb17b633b419737b65429fa7124ce87c5efc
coresight: perf: deal with error condition properly

Function coresight_build_path() should return -ENOMEM when kzalloc
fails to allocated the requested memory.  That way callers can deal
with the error condition in a similar way.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm-perf.c
drivers/hwtracing/coresight/coresight.c