diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-04-12 17:52:52 -0400 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-04-12 17:52:52 -0400 |
| commit | 32ea89ecb25789b1b7db28146558587a42f3b372 (patch) | |
| tree | c5b3b33523b353f2eab2d8dcd2b3f069826cdc48 /ipc/util.c | |
| parent | 58a7ce64426394a46e80cdc9440cc1e7c195e85d (diff) | |
| parent | a145410dccdb44f81d3b56763ef9b6f721f4e47c (diff) | |
Merge branch 'master'
Diffstat (limited to 'ipc/util.c')
| -rw-r--r-- | ipc/util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ipc/util.c b/ipc/util.c index 23151ef32590..5e785a29e1e6 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
| @@ -266,8 +266,7 @@ struct kern_ipc_perm* ipc_rmid(struct ipc_ids* ids, int id) | |||
| 266 | { | 266 | { |
| 267 | struct kern_ipc_perm* p; | 267 | struct kern_ipc_perm* p; |
| 268 | int lid = id % SEQ_MULTIPLIER; | 268 | int lid = id % SEQ_MULTIPLIER; |
| 269 | if(lid >= ids->entries->size) | 269 | BUG_ON(lid >= ids->entries->size); |
| 270 | BUG(); | ||
| 271 | 270 | ||
| 272 | /* | 271 | /* |
| 273 | * do not need a rcu_dereference()() here to force ordering | 272 | * do not need a rcu_dereference()() here to force ordering |
| @@ -275,8 +274,7 @@ struct kern_ipc_perm* ipc_rmid(struct ipc_ids* ids, int id) | |||
| 275 | */ | 274 | */ |
| 276 | p = ids->entries->p[lid]; | 275 | p = ids->entries->p[lid]; |
| 277 | ids->entries->p[lid] = NULL; | 276 | ids->entries->p[lid] = NULL; |
| 278 | if(p==NULL) | 277 | BUG_ON(p==NULL); |
| 279 | BUG(); | ||
| 280 | ids->in_use--; | 278 | ids->in_use--; |
| 281 | 279 | ||
| 282 | if (lid == ids->max_id) { | 280 | if (lid == ids->max_id) { |
