OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf9b50
)
uio: fix potential memory leak in error case
author
Chengguang Xu
<cgxu519@gmx.com>
Thu, 17 Jan 2019 09:27:46 +0000
(17:27 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 11:03:16 +0000
(12:03 +0100)
Should jump to lable err_infoopen when idev->info is NULL
in uio_open().
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c
patch
|
blob
|
history
diff --git
a/drivers/uio/uio.c
b/drivers/uio/uio.c
index
1313422
..
46e5c1c
100644
(file)
--- a/
drivers/uio/uio.c
+++ b/
drivers/uio/uio.c
@@
-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)