Rev 2615 | Rev 2618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2615 | Rev 2617 | ||
|---|---|---|---|
| Line 366... | Line 366... | ||
| 366 | unative_t arg1, unative_t arg2, unative_t arg3, ipc_data_t *data) |
366 | unative_t arg1, unative_t arg2, unative_t arg3, ipc_data_t *data) |
| 367 | { |
367 | { |
| 368 | call_t call; |
368 | call_t call; |
| 369 | phone_t *phone; |
369 | phone_t *phone; |
| 370 | int res; |
370 | int res; |
| - | 371 | int rc; |
|
| 371 | 372 | ||
| 372 | GET_CHECK_PHONE(phone, phoneid, return ENOENT); |
373 | GET_CHECK_PHONE(phone, phoneid, return ENOENT); |
| 373 | 374 | ||
| 374 | ipc_call_static_init(&call); |
375 | ipc_call_static_init(&call); |
| 375 | IPC_SET_METHOD(call.data, method); |
376 | IPC_SET_METHOD(call.data, method); |
| Line 381... | Line 382... | ||
| 381 | ipc_call_sync(phone, &call); |
382 | ipc_call_sync(phone, &call); |
| 382 | process_answer(&call); |
383 | process_answer(&call); |
| 383 | } else { |
384 | } else { |
| 384 | IPC_SET_RETVAL(call.data, res); |
385 | IPC_SET_RETVAL(call.data, res); |
| 385 | } |
386 | } |
| 386 | STRUCT_TO_USPACE(&data->args, &call.data.args); |
387 | rc = STRUCT_TO_USPACE(&data->args, &call.data.args); |
| - | 388 | if (rc != 0) |
|
| - | 389 | return rc; |
|
| 387 | 390 | ||
| 388 | return 0; |
391 | return 0; |
| 389 | } |
392 | } |
| 390 | 393 | ||
| 391 | /** Make a synchronous IPC call allowing to transmit the entire payload. |
394 | /** Make a synchronous IPC call allowing to transmit the entire payload. |