[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] tools/blktap2: Use abort() instead of custom crash



commit ddde10ac178bea2b9094371dd51ff7b5ea7f6ee3
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Wed Apr 27 11:33:42 2016 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Apr 27 20:31:03 2016 +0100

    tools/blktap2: Use abort() instead of custom crash
    
    Like c/s 4d98d3ebf - there is a second instance.
    
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 tools/blktap2/drivers/block-vhd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/blktap2/drivers/block-vhd.c 
b/tools/blktap2/drivers/block-vhd.c
index 76ea5bd..f7853f9 100644
--- a/tools/blktap2/drivers/block-vhd.c
+++ b/tools/blktap2/drivers/block-vhd.c
@@ -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)
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.