mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
uio: fix potential memory leak in error case
Should jump to lable err_infoopen when idev->info is NULL in uio_open(). Signed-off-by: Chengguang Xu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
dcf9b50e21
commit
1e09cdd506
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ static int uio_open(struct inode *inode, struct file *filep)
|
|||
if (!idev->info) {
|
||||
mutex_unlock(&idev->info_lock);
|
||||
ret = -EINVAL;
|
||||
goto err_alloc_listener;
|
||||
goto err_infoopen;
|
||||
}
|
||||
|
||||
if (idev->info && idev->info->open)
|
||||
|
|
|
|||
Loading…
Reference in a new issue