commit | 2c94e8567d7c7c9d619584da857e9f5b28f283ea | [log] [tgz] |
---|---|---|
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | Sat Oct 31 02:05:56 2015 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 02 15:56:11 2015 -0500 |
tree | 3edd2e76972a77d9d72b83653814e60dcb494461 | |
parent | 615a1003c6502f0d1812fd2dbe08e86b1c3f5db9 [diff] |
sh_eth: fix uninitialized arrays in sh_eth_ring_init() sh_eth_ring_free() called in the sh_eth_ring_init()'s error path expects the arrays pointed to by 'sh_eth_private::[rt]x_skbuff' to be initialized with NULLs but they are allocated with just kmalloc_array() and so are left filled with random data. Use kcalloc() instead. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>