From: Dan Carpenter Date: Sat, 21 Apr 2012 12:23:44 +0000 (+0300) Subject: wireless: at76c50x: allocating too much data X-Git-Tag: v3.5-rc1~109^2~79^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c50543cec42592c67d3c9cef5d426aee7c071f;p=pandora-kernel.git wireless: at76c50x: allocating too much data This is a cut and paste mistake, sizeof(struct mib_local) was intended instead of sizeof(struct mib_phy). The call to at76_get_mib() uses sizeof(struct mib_local) correctly, although I changed that to sizeof(*m) for style reasons after discussion with some of the wireless maintainers. The current code works fine because mib_phy structs are larger than mib_local structs. But we may as well clean it up. Signed-off-by: Dan Carpenter Signed-off-by: John W. Linville --- Reading git-diff-tree failed