Changeset 1761268 in mainline
- Timestamp:
- 2011-12-17T13:22:25Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 65d7b0a, 7aaed09, f044e96
- Parents:
- 8708be3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r8708be3 r1761268 278 278 } 279 279 } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_SHARE_IN) { 280 if (!IPC_GET_RETVAL(answer->data)) { 280 if (!IPC_GET_RETVAL(answer->data)) { 281 281 irq_spinlock_lock(&answer->sender->lock, true); 282 282 as_t *as = answer->sender->as; -
uspace/srv/net/net/packet_server.c
r8708be3 r1761268 304 304 static int packet_reply(packet_t *packet) 305 305 { 306 if (!packet_is_valid(packet)) 307 return EINVAL; 308 306 309 ipc_callid_t callid; 307 310 size_t size; 308 309 if (!packet_is_valid(packet))310 return EINVAL;311 312 311 if (!async_share_in_receive(&callid, &size)) { 313 312 async_answer_0(callid, EINVAL); 314 313 return EINVAL; 315 314 } 316 315 317 316 if (size != packet->length) { 318 317 async_answer_0(callid, ENOMEM); … … 375 374 case NET_PACKET_GET: 376 375 packet = pm_find(IPC_GET_ID(*call)); 377 if (!packet_is_valid(packet)) {376 if (!packet_is_valid(packet)) 378 377 return ENOENT; 379 }378 380 379 return packet_reply(packet); 381 380
Note:
See TracChangeset
for help on using the changeset viewer.