[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] libelf: "required" features should also be reported as "supported"



Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- a/xen/common/libelf/libelf-dominfo.c
+++ b/xen/common/libelf/libelf-dominfo.c
@@ -64,13 +64,14 @@ int elf_xen_parse_features(const char *f
         {
             if ( !elf_xen_feature_names[i] )
                 continue;
-            if ( (required != NULL) && (feature[0] == '!') )
+            if ( feature[0] == '!' )
             {
                 /* required */
                 if ( !strcmp(feature + 1, elf_xen_feature_names[i]) )
                 {
                     elf_xen_feature_set(i, supported);
-                    elf_xen_feature_set(i, required);
+                    if ( required )
+                        elf_xen_feature_set(i, required);
                     break;
                 }
             }



Attachment: libelf-required-features-are-supported.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.