diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/shm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1042,7 +1042,8 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr, | |||
1042 | is_file_hugepages(shp->shm_file) ? | 1042 | is_file_hugepages(shp->shm_file) ? |
1043 | &shm_file_operations_huge : | 1043 | &shm_file_operations_huge : |
1044 | &shm_file_operations); | 1044 | &shm_file_operations); |
1045 | if (!file) | 1045 | err = PTR_ERR(file); |
1046 | if (IS_ERR(file)) | ||
1046 | goto out_free; | 1047 | goto out_free; |
1047 | 1048 | ||
1048 | file->private_data = sfd; | 1049 | file->private_data = sfd; |