tools/blktap2: Use abort() instead of custom crash
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Apr 2016 10:33:42 +0000 (11:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Apr 2016 19:31:03 +0000 (20:31 +0100)
Like c/s 4d98d3ebf - there is a second instance.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/blktap2/drivers/block-vhd.c

index 76ea5bd4f16187e7b40b3931453fdbcc6c160b09..f7853f922dd7f56f0a50b5bffb1e7c3e77c36d37 100644 (file)
@@ -85,7 +85,7 @@ unsigned int SPB;
                DBG(TLOG_WARN, "%s:%d: FAILED ASSERTION: '%s'\n",       \
                    __FILE__, __LINE__, #_p);                           \
                tlog_flush();                                           \
-               *(int*)0 = 0;                                           \
+               abort();                                                \
        }
 
 #if (DEBUGGING == 1)