]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sh_mmcif: fix use after free
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 23 Oct 2012 12:08:52 +0000 (14:08 +0200)
committerChris Ball <cjb@laptop.org>
Wed, 7 Nov 2012 20:02:02 +0000 (15:02 -0500)
commita0d28ba01ebd048b4ba418142b37f5cf80e6d156
treec37eb5131c5ac5569221f4f61eb7c54c839183fe
parent90b3e6c53b006d55952183d8ada2ce3ebc0dce06
mmc: sh_mmcif: fix use after free

A recent commit "mmc: sh_mmcif: fix clock management" has introduced a
use after free bug in sh_mmcif.c: in sh_mmcif_remove() the call to
mmc_free_host() frees private driver data, therefore using it afterwards
is a bug. Revert that hunk.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: stable@vger.kernel.org [3.6]
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c