projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs: Preserve error code in get_empty_filp(), part 2
[deliverable/linux.git]
/
ipc
/
shm.c
diff --git
a/ipc/shm.c
b/ipc/shm.c
index 8c9402d298a0fb6a1ce3f9840670dfa4d9fda5b6..de389e639e7e58c36e72543c2b7b250768340080 100644
(file)
--- a/
ipc/shm.c
+++ b/
ipc/shm.c
@@
-1042,7
+1042,8
@@
long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr,
is_file_hugepages(shp->shm_file) ?
&shm_file_operations_huge :
&shm_file_operations);
- if (!file)
+ err = PTR_ERR(file);
+ if (IS_ERR(file))
goto out_free;
file->private_data = sfd;
This page took
0.023908 seconds
and
5
git commands to generate.