libertas_sdio slab corruption on card remove

Daniel Drake dsd at laptop.org
Fri Nov 19 13:51:59 EST 2010


Hi,

2.6.32 introduced a regression. The following commit causes slab
corruption on every suspend/resume:

commit 23b149c1890f9a55f065c6b7842e9383d22e0c04
Author: Andrey Yurovsky <andrey at cozybit.com>
Date:   Wed Jun 17 19:15:19 2009 -0700

    libertas: fix card cleanup order in SDIO driver


This code flow cannot be valid:
 	lbs_remove_card(card->priv);
	card->priv->surpriseremoved = 1;

because lbs_remove_card frees card->priv (via free_netdev)

Please investigate :)

Daniel



More information about the libertas-dev mailing list