* nouveau.c
@ 2014-03-26 20:37 Daniel Melo Jorge da Cunha
[not found] ` <CANbfre5w0dTR_jPsKrV=0H-iDhumeVwNp_CE214uBLXetRCb3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Melo Jorge da Cunha @ 2014-03-26 20:37 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
[-- Attachment #1.1: Type: text/plain, Size: 374 bytes --]
Hi, I am inspecting the file nouveau.c...
In the function nouveau_client_new there is the
following:
for (i = 0; i < nvdev->nr_client; i++) {
but "nr_client" has no previous assignment
so it has scrambled data. Is this expected behaviour
or am I missing something (the most probable :)?
And someone please tell me where do I find that ffs function.
Thanks in advance!!
[-- Attachment #1.2: Type: text/html, Size: 722 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <CANbfre5w0dTR_jPsKrV=0H-iDhumeVwNp_CE214uBLXetRCb3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: nouveau.c [not found] ` <CANbfre5w0dTR_jPsKrV=0H-iDhumeVwNp_CE214uBLXetRCb3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-03-26 20:58 ` Ilia Mirkin 2014-03-26 21:18 ` nouveau.c Peter Hurley 1 sibling, 0 replies; 3+ messages in thread From: Ilia Mirkin @ 2014-03-26 20:58 UTC (permalink / raw) To: Daniel Melo Jorge da Cunha Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org struct nouveau_device_priv *nvdev = calloc(1, sizeof(*nvdev)); calloc sets the entire structure to 0. so that field is implicitly set to 0 on allocation. On Wed, Mar 26, 2014 at 4:37 PM, Daniel Melo Jorge da Cunha <dmjcunha-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, I am inspecting the file nouveau.c... > In the function nouveau_client_new there is the > following: > > for (i = 0; i < nvdev->nr_client; i++) { > > but "nr_client" has no previous assignment > > so it has scrambled data. Is this expected behaviour > or am I missing something (the most probable :)? > > And someone please tell me where do I find that ffs function. > > Thanks in advance!! > > _______________________________________________ > Nouveau mailing list > Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > http://lists.freedesktop.org/mailman/listinfo/nouveau > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nouveau.c [not found] ` <CANbfre5w0dTR_jPsKrV=0H-iDhumeVwNp_CE214uBLXetRCb3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-03-26 20:58 ` nouveau.c Ilia Mirkin @ 2014-03-26 21:18 ` Peter Hurley 1 sibling, 0 replies; 3+ messages in thread From: Peter Hurley @ 2014-03-26 21:18 UTC (permalink / raw) To: Daniel Melo Jorge da Cunha, nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org On 03/26/2014 04:37 PM, Daniel Melo Jorge da Cunha wrote: > And someone please tell me where do I find that ffs function. ffs() is defined either by the arch (eg., arch/x86/include/asm/bitops.h) or, if not implemented by the arch, then generically in include/asm-generic/bitops/ffs.h This is common pattern for many arch-dependent implementation details. Regards, Peter Hurley ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-26 21:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 20:37 nouveau.c Daniel Melo Jorge da Cunha
[not found] ` <CANbfre5w0dTR_jPsKrV=0H-iDhumeVwNp_CE214uBLXetRCb3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-26 20:58 ` nouveau.c Ilia Mirkin
2014-03-26 21:18 ` nouveau.c Peter Hurley
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.