[U-Boot] [PATCH] mmc/dwmmc: Using calloc instead malloc

2013-12-18 Thread Chin Liang See
To enhance the SDMMC DesignWare driver to use calloc instead of malloc. This will avoid the incident that uninitialized members of mmc structure are later used for NULL comparison. Signed-off-by: Chin Liang See Cc: Rajeshwari Shinde Cc: Jaehoon Chung Cc: Mischa Jonker Cc: Alexey Brodkin Cc: A

Re: [U-Boot] [PATCH] mmc/dwmmc: Using calloc instead malloc

2013-12-18 Thread Alexey Brodkin
On Wed, 2013-12-18 at 09:08 -0600, Chin Liang See wrote: > To enhance the SDMMC DesignWare driver to use calloc instead of > malloc. This will avoid the incident that uninitialized members > of mmc structure are later used for NULL comparison. > IMHO pretty sane change. Actually I had local mems