Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uio: clean uioinfo when uninstall uio driver

The uioinfo should be cleaned up when uninstall, otherwise re-install
failure of uio_pdrv_genirq.ko will happen.

Signed-off-by: Jie Zhou <b30303@freescale.com>
Signed-off-by: Aisheng Dong <b29396@freescale.com>
Signed-off-by: Hans J. Koch <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Jie Zhou and committed by
Greg Kroah-Hartman
47296b19 c6edc42f

+4
+4
drivers/uio/uio_pdrv_genirq.c
··· 189 189 190 190 uio_unregister_device(priv->uioinfo); 191 191 pm_runtime_disable(&pdev->dev); 192 + 193 + priv->uioinfo->handler = NULL; 194 + priv->uioinfo->irqcontrol = NULL; 195 + 192 196 kfree(priv); 193 197 return 0; 194 198 }