UIO: uio_pdrv: fix memory leak
Thanks to Magnus Damm for pointing that out. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Cc: Magnus Damm <magnus.damm@gmail.com> Acked-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5c0ef6d021
commit
331995e783
|
@ -88,6 +88,8 @@ static int uio_pdrv_remove(struct platform_device *pdev)
|
|||
|
||||
uio_unregister_device(pdata->uioinfo);
|
||||
|
||||
kfree(pdata);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue