]> git.karo-electronics.de Git - karo-tx-linux.git/commit
wireless: at76c50x: allocating too much data
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 21 Apr 2012 12:23:44 +0000 (15:23 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 20:07:22 +0000 (16:07 -0400)
commite78d1f3a645650e393fd10e22665f7a8eacff983
tree353eec6b6f1ab1a01a9e13968105c023b3317cb1
parentfa1376676ca08992a6e7210291657c44a7c86a2b
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 <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c