projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target: Propigate backend read-only to core_tpg_add_lun
[firefly-linux-kernel-4.4.55.git]
/
ipc
/
shm.c
diff --git
a/ipc/shm.c
b/ipc/shm.c
index 4aef24d91b633e12275cea64a380df4543fc796b..222131e8e38f334547004bf0830b26bf808cc6a2 100644
(file)
--- a/
ipc/shm.c
+++ b/
ipc/shm.c
@@
-159,7
+159,7
@@
static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id)
* We raced in the idr lookup or with shm_destroy(). Either way, the
* ID is busted.
*/
* We raced in the idr lookup or with shm_destroy(). Either way, the
* ID is busted.
*/
-
BUG
_ON(IS_ERR(ipcp));
+
WARN
_ON(IS_ERR(ipcp));
return container_of(ipcp, struct shmid_kernel, shm_perm);
}
return container_of(ipcp, struct shmid_kernel, shm_perm);
}
@@
-393,7
+393,7
@@
static int shm_mmap(struct file *file, struct vm_area_struct *vma)
return ret;
sfd->vm_ops = vma->vm_ops;
#ifdef CONFIG_MMU
return ret;
sfd->vm_ops = vma->vm_ops;
#ifdef CONFIG_MMU
-
BUG
_ON(!sfd->vm_ops->fault);
+
WARN
_ON(!sfd->vm_ops->fault);
#endif
vma->vm_ops = &shm_vm_ops;
shm_open(vma);
#endif
vma->vm_ops = &shm_vm_ops;
shm_open(vma);