Author: simon Date: 2009-12-30 04:38:07 +0000 (Wed, 30 Dec 2009) New Revision: 1524
Modified: trunk/batman-adv-kernelland/translation-table.c Log: batman-adv: fix regression in the regression fix
null-initialized fields instead of the source fields were used to allocate and copy the incoming HNA buffer ...
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
Modified: trunk/batman-adv-kernelland/translation-table.c =================================================================== --- trunk/batman-adv-kernelland/translation-table.c 2009-12-30 04:25:15 UTC (rev 1523) +++ trunk/batman-adv-kernelland/translation-table.c 2009-12-30 04:38:07 UTC (rev 1524) @@ -337,10 +337,9 @@ orig_node->hna_buff_len = 0;
if (hna_buff_len > 0) { - orig_node->hna_buff = kmalloc(orig_node->hna_buff_len, GFP_ATOMIC); + orig_node->hna_buff = kmalloc(hna_buff_len, GFP_ATOMIC); if (orig_node->hna_buff) { - memcpy(orig_node->hna_buff, hna_buff, - orig_node->hna_buff_len); + memcpy(orig_node->hna_buff, hna_buff, hna_buff_len); orig_node->hna_buff_len = hna_buff_len; } }