Rev 3054 | Rev 3370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3054 | Rev 3332 | ||
---|---|---|---|
Line 268... | Line 268... | ||
268 | ASSERT(answer->buffer); |
268 | ASSERT(answer->buffer); |
269 | if (!IPC_GET_RETVAL(answer->data)) { |
269 | if (!IPC_GET_RETVAL(answer->data)) { |
270 | /* The recipient agreed to receive data. */ |
270 | /* The recipient agreed to receive data. */ |
271 | int rc; |
271 | int rc; |
272 | uintptr_t dst; |
272 | uintptr_t dst; |
273 | uintptr_t size; |
273 | size_t size; |
274 | uintptr_t max_size; |
274 | size_t max_size; |
275 | 275 | ||
276 | dst = IPC_GET_ARG1(answer->data); |
276 | dst = (uintptr_t)IPC_GET_ARG1(answer->data); |
277 | size = IPC_GET_ARG2(answer->data); |
277 | size = (size_t)IPC_GET_ARG2(answer->data); |
278 | max_size = IPC_GET_ARG2(*olddata); |
278 | max_size = (size_t)IPC_GET_ARG2(*olddata); |
279 | 279 | ||
280 | if (size <= max_size) { |
280 | if (size <= max_size) { |
281 | rc = copy_to_uspace((void *) dst, |
281 | rc = copy_to_uspace((void *) dst, |
282 | answer->buffer, size); |
282 | answer->buffer, size); |
283 | if (rc) |
283 | if (rc) |