From 70ee5084213c27733f723a7d3f597764bba38dcf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 9 Nov 2015 08:58:59 +0000 Subject: lib: Make instdone initialisation fail gracefully Just report that we don't recognise the chipset rather than explode. Signed-off-by: Chris Wilson --- tools/intel_error_decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c index c7102127..a7a65e85 100644 --- a/tools/intel_error_decode.c +++ b/tools/intel_error_decode.c @@ -97,7 +97,8 @@ print_instdone(uint32_t devid, unsigned int instdone, unsigned int instdone1) static int once; if (!once) { - init_instdone_definitions(devid); + if (!init_instdone_definitions(devid)) + return; once = 1; } -- cgit v1.2.3