mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
UIO: uio_pdrv: fix memory leak
Thanks to Magnus Damm for pointing that out. Signed-off-by: Uwe Kleine-König <[email protected]> Cc: Magnus Damm <[email protected]> Acked-by: Hans J. Koch <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5c0ef6d021
commit
331995e783
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue