Re: [U-Boot] [PATCH] net: e1000: Add initialized eth_device & e1000_hw structure

2010-11-15 Thread Kumar Gala
On Nov 14, 2010, at 4:24 PM, Wolfgang Denk wrote: > Dear Kumar Gala, > > In message <1289556786-15201-1-git-send-email-ga...@kernel.crashing.org> you > wrote: >> nic and hw structures are allocated via malloc i.e. return memory >> is not zero initialized. Because of this few structure member li

Re: [U-Boot] [PATCH] net: e1000: Add initialized eth_device & e1000_hw structure

2010-11-14 Thread Wolfgang Denk
Dear Kumar Gala, In message <1289556786-15201-1-git-send-email-ga...@kernel.crashing.org> you wrote: > nic and hw structures are allocated via malloc i.e. return memory > is not zero initialized. Because of this few structure member like > "function pointers" are initialized with garbage values.

Re: [U-Boot] [PATCH] net: e1000: Add initialized eth_device & e1000_hw structure

2010-11-12 Thread Paul Gortmaker
On Fri, Nov 12, 2010 at 5:13 AM, Kumar Gala wrote: > nic and hw structures are allocated via malloc i.e. return memory > is not zero initialized. Because of this few structure member like > "function pointers" are initialized with garbage values. > > It may cause problem. for eg. during eth_initia

[U-Boot] [PATCH] net: e1000: Add initialized eth_device & e1000_hw structure

2010-11-12 Thread Kumar Gala
nic and hw structures are allocated via malloc i.e. return memory is not zero initialized. Because of this few structure member like "function pointers" are initialized with garbage values. It may cause problem. for eg. during eth_initialize, dev->write_hwaddr is used. Signed-off-by: Kumar Gala