|
|
@@ -686,22 +686,6 @@ struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id)
|
|
|
return out;
|
|
|
}
|
|
|
|
|
|
-struct kern_ipc_perm *ipc_lock_check(struct ipc_ids *ids, int id)
|
|
|
-{
|
|
|
- struct kern_ipc_perm *out;
|
|
|
-
|
|
|
- out = ipc_lock(ids, id);
|
|
|
- if (IS_ERR(out))
|
|
|
- return out;
|
|
|
-
|
|
|
- if (ipc_checkid(out, id)) {
|
|
|
- ipc_unlock(out);
|
|
|
- return ERR_PTR(-EIDRM);
|
|
|
- }
|
|
|
-
|
|
|
- return out;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* ipcget - Common sys_*get() code
|
|
|
* @ns : namsepace
|