Under certain conditions, modopts is never initialized. This patch
fixes up that while preserving the existing functionality introduced
with 29e18c35.
---
loader/modules.c | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
11-04-2009, 09:42 PM
David Lehman
Correctly initialize modopts in loader (#531932).
On Wed, 2009-11-04 at 12:27 -1000, David Cantrell wrote:
> Under certain conditions, modopts is never initialized. This patch
> fixes up that while preserving the existing functionality introduced
> with 29e18c35.
> ---
> loader/modules.c | 22 ++++++++++++----------
> 1 files changed, 12 insertions(+), 10 deletions(-)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
11-05-2009, 08:06 AM
Ales Kozumplik
Correctly initialize modopts in loader (#531932).
On 11/04/2009 11:27 PM, David Cantrell wrote:
Under certain conditions, modopts is never initialized. This patch
fixes up that while preserving the existing functionality introduced
with 29e18c35.
---
loader/modules.c | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
I was looking at this issue yesterday and I just took a look at your
patch. I am a bit confused: The code in the new revision will do nothing
in case a module of given name is not found in the table. If we assume
that nummodopts is initially 0, nothing ever gets added and the table
will remain empty -- is that what we want?
Also: why nummodopts is initially -1 (that has nothing to do with your
patch though, just a question)? Is that because we don't want
mlLoadModule calls to modify the table before mlInitModuleConfig is called?
Thank you,
Ales
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list