Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
iprutils
iprutils-Fix-microcode-image-sorting-on-little-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iprutils-Fix-microcode-image-sorting-on-little-endian-systems.patch of Package iprutils
From 35e85f59ef4bc16e78979684e318b44e76f14330 Mon Sep 17 00:00:00 2001 From: Brian King <brking@linux.vnet.ibm.com> Date: Thu, 16 Nov 2017 15:12:32 -0600 Subject: [PATCH 2/2] iprutils: Fix microcode image sorting on little endian systems Git-commit: 35e85f59ef4bc16e78979684e318b44e76f14330 Fixes the sorting of microcode images from the filesystem on little endian systems so that when using the ncurses interface to download microcode, the latest version shows up as the top option. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> --- iprlib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iprlib.c b/iprlib.c index 97653e4232ab..bc4afe35ed76 100644 --- a/iprlib.c +++ b/iprlib.c @@ -8369,8 +8369,11 @@ static int fw_compare(const void *parm1, struct ipr_fw_images *first = (struct ipr_fw_images *)parm1; struct ipr_fw_images *second = (struct ipr_fw_images *)parm2; - return memcmp(&second->version, &first->version, - sizeof(second->version)); + if (first->version < second->version) + return 1; + if (second->version > first->version) + return -1; + return 0; } /** -- 2.13.6
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