wireless: iwlwifi3945/4965 - fix incorrect counting of memory
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 26 Jan 2008 16:09:36 +0000 (19:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:49 +0000 (19:26 -0800)
commit18904f5839336d7d047fdb20a9e7db87f2942ec9
tree2a781e080629422eb45b86226d7ad236c7bd07c0
parentfdfb92eab5a60f3060d4513182212d5ca9913cd1
wireless: iwlwifi3945/4965 - fix incorrect counting of memory

This patch does fix incorrect counting of memory allocated by kmalloc.
It seems that could lead to allocated memory overrun and corrupt
nearlaid memory area.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c