Rev 4296 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4296 | Rev 4420 | ||
---|---|---|---|
Line 326... | Line 326... | ||
326 | /* Remove myself from answerbox */ |
326 | /* Remove myself from answerbox */ |
327 | spinlock_lock(&box->lock); |
327 | spinlock_lock(&box->lock); |
328 | list_remove(&phone->link); |
328 | list_remove(&phone->link); |
329 | spinlock_unlock(&box->lock); |
329 | spinlock_unlock(&box->lock); |
330 | 330 | ||
331 | if (phone->state != IPC_PHONE_SLAMMED) { |
- | |
332 | call = ipc_call_alloc(0); |
331 | call = ipc_call_alloc(0); |
333 | IPC_SET_METHOD(call->data, IPC_M_PHONE_HUNGUP); |
332 | IPC_SET_METHOD(call->data, IPC_M_PHONE_HUNGUP); |
334 | call->flags |= IPC_CALL_DISCARD_ANSWER; |
333 | call->flags |= IPC_CALL_DISCARD_ANSWER; |
335 | _ipc_call(phone, box, call); |
334 | _ipc_call(phone, box, call); |
336 | } |
- | |
337 | } |
335 | } |
338 | 336 | ||
339 | phone->state = IPC_PHONE_HUNGUP; |
337 | phone->state = IPC_PHONE_HUNGUP; |
340 | mutex_unlock(&phone->lock); |
338 | mutex_unlock(&phone->lock); |
341 | 339 |