projects
/
platform
/
kernel
/
linux-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
packaging: add spec file, gbs.conf
[platform/kernel/linux-stable.git]
/
fs
/
kernfs
/
file.c
diff --git
a/fs/kernfs/file.c
b/fs/kernfs/file.c
index
dbf397b
..
d29640b
100644
(file)
--- a/
fs/kernfs/file.c
+++ b/
fs/kernfs/file.c
@@
-476,6
+476,8
@@
static int kernfs_fop_mmap(struct file *file, struct vm_area_struct *vma)
ops = kernfs_ops(of->kn);
rc = ops->mmap(of, vma);
+ if (rc)
+ goto out_put;
/*
* PowerPC's pci_mmap of legacy_mem uses shmem_zero_setup()