|
@@ -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
|
|
* We raced in the idr lookup or with shm_destroy(). Either way, the
|
|
* ID is busted.
|
|
* 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;
|
|
return ret;
|
|
sfd->vm_ops = vma->vm_ops;
|
|
sfd->vm_ops = vma->vm_ops;
|
|
#ifdef CONFIG_MMU
|
|
#ifdef CONFIG_MMU
|
|
- BUG_ON(!sfd->vm_ops->fault);
|
|
|
|
|
|
+ WARN_ON(!sfd->vm_ops->fault);
|
|
#endif
|
|
#endif
|
|
vma->vm_ops = &shm_vm_ops;
|
|
vma->vm_ops = &shm_vm_ops;
|
|
shm_open(vma);
|
|
shm_open(vma);
|