Mageia Bugzilla – Attachment 2792 Details for
Bug 5833
Can't install Mageia 2 on HP ProLiant ML 350
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
pick latest driver
5833.diff (text/plain), 666 bytes, created by
Thierry Vignaud
on 2012-09-12 20:34:22 CEST
(
hide
)
Description:
pick latest driver
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-09-12 20:34:22 CEST
Size:
666 bytes
patch
obsolete
>diff --git a/modalias.c b/modalias.c >index 029617e..f8351b4 100644 >--- a/modalias.c >+++ b/modalias.c >@@ -101,13 +102,14 @@ char *modalias_resolve_module(struct kmod_ctx *ctx, const char *modalias) { > if (err <0) > goto exit; > list = filtered; >- >+ int i = 0; > kmod_list_foreach(l, list) { > struct kmod_module *mod = kmod_module_get_module(l); >- //if (str) // keep last one >- // free(str); >- if (!str) // keep first one >+ if (str) // keep last one >+ free(str); >+ //if (!str) // keep first one > str = strdup(kmod_module_get_name(mod)); >+ printf("module%d = '%s'\n", i++, kmod_module_get_name(mod)); > kmod_module_unref(mod); > if (err < 0) > break;
diff --git a/modalias.c b/modalias.c index 029617e..f8351b4 100644 --- a/modalias.c +++ b/modalias.c @@ -101,13 +102,14 @@ char *modalias_resolve_module(struct kmod_ctx *ctx, const char *modalias) { if (err <0) goto exit; list = filtered; - + int i = 0; kmod_list_foreach(l, list) { struct kmod_module *mod = kmod_module_get_module(l); - //if (str) // keep last one - // free(str); - if (!str) // keep first one + if (str) // keep last one + free(str); + //if (!str) // keep first one str = strdup(kmod_module_get_name(mod)); + printf("module%d = '%s'\n", i++, kmod_module_get_name(mod)); kmod_module_unref(mod); if (err < 0) break;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5833
:
2272
|
2273
|
2274
|
2783
|
2784
|
2787
|
2791
| 2792