Mageia Bugzilla – Attachment 3204 Details for
Bug 8315
no hard drive found attempting to install mga3 beta 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
reversing modaliases order in ldetect (same since forever)...
ldetect-reverse-order.diff (text/plain), 529 bytes, created by
Thierry Vignaud
on 2012-12-06 21:28:02 CET
(
hide
)
Description:
reversing modaliases order in ldetect (same since forever)...
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-12-06 21:28:02 CET
Size:
529 bytes
patch
obsolete
>diff --git a/modalias.c b/modalias.c >index 029617e..5ed5aee 100644 >--- a/modalias.c >+++ b/modalias.c >@@ -104,9 +104,9 @@ char *modalias_resolve_module(struct kmod_ctx *ctx, const char *modalias) { > > 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)); > kmod_module_unref(mod); > if (err < 0)
diff --git a/modalias.c b/modalias.c index 029617e..5ed5aee 100644 --- a/modalias.c +++ b/modalias.c @@ -104,9 +104,9 @@ char *modalias_resolve_module(struct kmod_ctx *ctx, const char *modalias) { 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)); kmod_module_unref(mod); if (err < 0)
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8315
: 3204 |
3205