From: Mark Einon Date: Tue, 23 Sep 2014 19:41:11 +0000 (+0100) Subject: staging: et131x: zero allocation of fbr to prevent random address access X-Git-Tag: fixes-for-v3.18-merge-window~15^2~220 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e112eb598db4fb7b99086c33765cf262dcfda0d2;p=pandora-kernel.git staging: et131x: zero allocation of fbr to prevent random address access If et131x_rx_dma_memory_alloc() allocates rx_ring->fbr[0] but fails to allocate rx_ring->fbr[1], this leaves fbr[0]->ring_virtaddr with the possibility of being accessed in et131x_rx_dma_memory_free() as it contains a random value, potentially causing an oops. Fix this by zeroing the fbr memory on allocation. Subsequent frees of this fbr memory explicitly zeros the ring_virtaddr value. Reported-by: Tobias Klauser Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed