From: Lionel Landwerlin Date: Wed, 24 May 2017 01:04:34 +0000 (+0100) Subject: aubinator: report error on unknown device id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=359fa0e9a0e3b904622e91d2ce93debefb943312;p=mesa.git aubinator: report error on unknown device id Since we're going to stop aubinator without a valid device id, better report an error. This also silences a Coverity warning. CID: 1405004 Signed-off-by: Lionel Landwerlin Reviewed-by: Iago Toral Quiroga --- diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index a41292238cb..636f56a3365 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -635,7 +635,7 @@ read_data_file(FILE *file) if (matched == 1) { if (!gen_get_device_info(reg, &devinfo)) { printf("Unable to identify devid=%x\n", reg); - return; + exit(EXIT_FAILURE); } disasm = gen_disasm_create(reg);