]> git.baikalelectronics.ru Git - kernel.git/commit
p54usb: fix nasty use after free
authorChristian Lamparter <chunkeey@web.de>
Mon, 19 Jan 2009 23:27:57 +0000 (00:27 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Jan 2009 18:55:02 +0000 (13:55 -0500)
commitfa915e0dad265a622c26dfe776b7871b9ffe8c5c
tree22936f2b3784c4d89c4f1e2263b528167f42e683
parente85a8a6bff6c89477d7570099b8bc5e0264525bf
p54usb: fix nasty use after free

In theory, the firmware acks the received a data frame, before signaling the driver to free it again.
However Artur Skawina <art.08.09@gmail.com> has shown that it can happen in reverse order as well.
This is very bad and could lead to memory corruptions, oopses and panics.

Thanks to Artur Skawina <art.08.09@gmail.com> for reporting and debugging this issue.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Tested-by: Artur Skawina <art.08.09@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54usb.c