
7 Jan
2015
7 Jan
'15
7:26 p.m.
Fabio Estevam wrote:
ssi_np->full_name);
of_node_put(ssi_np); return ret; }pdev->name);
- dma = kzalloc(sizeof(*dma) + strlen(np->full_name), GFP_KERNEL);
- dma = kzalloc(sizeof(*dma), GFP_KERNEL);
Something is missing here. Since we're no longer allocating space in the 'dma' object for the name, then you should probably delete the code that copies the string to the 'dma' object.