Commit 331995e78385a0b9860f4c4c1766e842e61c450a

Authored by Uwe Kleine-König
Committed by Greg Kroah-Hartman
1 parent 5c0ef6d021

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/uio/uio_pdrv.c
... ... @@ -88,6 +88,8 @@
88 88  
89 89 uio_unregister_device(pdata->uioinfo);
90 90  
  91 + kfree(pdata);
  92 +
91 93 return 0;
92 94 }
93 95