Blame SOURCES/rhbz1269062.patch

9201c6
commit a32189c495cf4dbb71fa497adcaa2ab31aad7021
9201c6
Author: Martin Cermak <mcermak@redhat.com>
9201c6
Date:   Wed Jun 29 19:03:11 2016 +0200
9201c6
9201c6
    Avoid null pointer exception in the ioscheduler.elv_add_request probe.
9201c6
    
9201c6
    This update makes the ioscheduler.elv_add_request probe gracefully handle
9201c6
    situation where $q->elevator is NULL (RHBZ1269062).
9201c6
9201c6
diff --git a/tapset/linux/ioscheduler.stp b/tapset/linux/ioscheduler.stp
9201c6
index 00d75a5..121fde8 100644
9201c6
--- a/tapset/linux/ioscheduler.stp
9201c6
+++ b/tapset/linux/ioscheduler.stp
9201c6
@@ -149,7 +149,7 @@ probe ioscheduler.elv_add_request.tp = kernel.trace("block_rq_insert") ?
9201c6
 {
9201c6
 	name = "elv_add_request"
9201c6
 	q =  $q
9201c6
-	elevator_name = kernel_string(
9201c6
+	elevator_name = ($q->elevator == 0) ? "" : kernel_string(
9201c6
 		@choose_defined($q->elevator->type->elevator_name,
9201c6
 			@choose_defined($q->elevator->elevator_type->elevator_name,
9201c6
                                         $q->elevator->elevator_name)), "")