Staging: mrst-touchscreen: dereferencing free memory
Subsystems (2)
PATCH 1/1 Staging: mrst-touchscreen: dereferencing free memory
I moved the kfree() down a couple lines after the dereference.
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/mrst-touchscreen/intel-mid-touch.c +1 -1
@@ -817,9 +817,9 @@ static int mrstouch_remove(struct spi_device *spi)free_irq (mrstouchdevp->irq, mrstouchdevp);input_unregister_device (mrstouchdevp->input);input_free_device (mrstouchdevp->input); -kfree (mrstouchdevp);if (mrstouchdevp->pendet_thrd)kthread_stop (mrstouchdevp->pendet_thrd); +kfree (mrstouchdevp);return 0 ; }
Quoted 3 lines · On Sat, 5 Jun 2010 19:16:42 +0200 Dan Carpenter <[email protected]> wrote:
I moved the
kfree()down a couple lines after the dereference.Signed-off-by Dan Carpenter <[email protected]>
Acked-by Alan Cox <[email protected]>
Thanks