Comment 1 for bug 1480821

Revision history for this message
Colin Ian King (colin-king) wrote :

This bug is occurring on a NULL object deference in add_active_trip_point for devices that support the _TRT ACPI object:

union art_object *object = (union art_object *) rel_obj.art_objects[j];

I believe this is because of a typo in:

parse_target_devices

                if (find_iter == rel_list.end()) {
                        rel_obj.art_objects.push_back(&art[i]);
                        rel_list.push_back(rel_obj);
                } else
                        find_iter->art_objects.push_back(&art[i]);

should be:

                if (find_iter == rel_list.end()) {
                        rel_obj.art_objects.push_back(&trt[i]);
                        rel_list.push_back(rel_obj);
                } else
                        find_iter->art_objects.push_back(&art[i]);

so trt is not being populated, we have a NULL object that bites us when we invoke add_active_trip_point