Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
powerpc-utils.8811
powerpc-utils.bug-1043569_drmgr-Correct-drc-typ...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File powerpc-utils.bug-1043569_drmgr-Correct-drc-type-checking-in-check_kmods.patch of Package powerpc-utils.8811
From 479f1a1122f7d9025d3a21e60a0431d2eba6ee2f Mon Sep 17 00:00:00 2001 From: Nathan Fontenot <nfont@linux.vnet.ibm.com> Date: Tue, 6 Jun 2017 12:12:22 -0400 Subject: [PATCH] drmgr: Correct drc type checking in check_kmods() Fixes: f9986ac43011 ("drmgr: Move options.ctype to global usr_drc_type") When the conversion to using the global usr_drc_type was made the logic checking for whic drc types we need to check the rpadlpar_io kernbel module for was broken. This corrects the check. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> --- src/drmgr/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drmgr/common.c b/src/drmgr/common.c index 0524ee99402d..824bebad54a0 100644 --- a/src/drmgr/common.c +++ b/src/drmgr/common.c @@ -113,8 +113,8 @@ static int check_kmods(void) int rc; /* We only need to do this for PHB/SLOT/PCI operations */ - if (usr_drc_type == DRC_TYPE_PCI || usr_drc_type == DRC_TYPE_PHB || - usr_drc_type == DRC_TYPE_SLOT) + if (usr_drc_type != DRC_TYPE_PCI && usr_drc_type != DRC_TYPE_PHB && + usr_drc_type != DRC_TYPE_SLOT) return 0; /* We don't use rpadlar_io/rpaphp for PCI operations run with the -- 2.10.2
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