Fix memory initialization in ag7240.c
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>
Mon, 19 Oct 2015 17:36:59 +0000 (19:36 +0200)
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>
Mon, 19 Oct 2015 17:36:59 +0000 (19:36 +0200)
commit3749decc830c7f53827bcfe0d2ea448a0870e890
tree48ffa8dee9e5a3d72f581391e5fb4a042e3e52cd
parent7aa4eb70f3e8f0eaf5cf936e75ed2daf2b0b9b7f
Fix memory initialization in ag7240.c

Only the first sizeof(ptr) bytes were initialized correctly.
This leads to a crash in ag7250_send() if mac->next_tx is uninitialized
(if the memory returned by malloc() is not nulled).
u-boot/cpu/mips/ar7240/ag7240.c