]> err.no Git - linux-2.6/commit
[PATCH] ipw2200: fix error log offset calculation
authorZhu Yi <yi.zhu@intel.com>
Thu, 17 Nov 2005 05:58:30 +0000 (13:58 +0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 17 Nov 2005 16:32:58 +0000 (08:32 -0800)
commit3b26b1100e26811e54770abaa221eae140ba840d
treeeb19e8e3145dfeb93ca5f1f9882302f5831fb35b
parentefb3442cf1c65747a858476e10f705612383eed1
[PATCH] ipw2200: fix error log offset calculation

This fixes a slab corruption issue in the ipw2200 driver: it essentially
multiplied the error log number _twice_ by the size of the error element
entry (once explicitly in the code, and once implicitly as part of the
regular pointer arithmetic).

Cc: Henrik Brix Andersen <brix@gentoo.org>
Cc: Bernard Blackham <bernard@blackham.com.au>
Cc: Zilvinas Valinskas <zilvinas@gemtek.lt>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
--
drivers/net/wireless/ipw2200.c