Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
irqd
irqd-uninitialized.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File irqd-uninitialized.diff of Package irqd
From a4cac47407d44acfbab2d5c715e619302aec4d26 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jengelh@inai.de> Date: Sun, 10 Aug 2014 17:45:16 +0200 Subject: [PATCH] Avoid calling if_queue_name() with uninitialized variable Status: submitted, waiting I suspect that 0 is a sensible default value for the "queue" variable in case strpbrk did not find anything, since an interface should always be having at least one queue (even if that maps to a noop). --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index 5cd7047..0f1f520 100644 --- a/interface.c +++ b/interface.c @@ -740,7 +740,7 @@ irq_update_stats(const char *action, const struct irq_info *ii) struct if_queue_info *qi = NULL; enum ProcIrqAction pia; const char *tail; - int queue; + int queue = 0; if ((tail = strpbrk(action, "-[")) != NULL) { pia = parse_iface_irq_action_tail(tail, &queue); -- 2.0.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor