Changeset 65d7b0a in mainline


Ignore:
Timestamp:
2011-12-18T09:58:06Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1440eae
Parents:
9fe4db3 (diff), 1761268 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/sysipc.c

    r9fe4db3 r65d7b0a  
    278278                }
    279279        } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_SHARE_IN) {
    280                 if (!IPC_GET_RETVAL(answer->data)) { 
     280                if (!IPC_GET_RETVAL(answer->data)) {
    281281                        irq_spinlock_lock(&answer->sender->lock, true);
    282282                        as_t *as = answer->sender->as;
  • uspace/lib/net/generic/packet_remote.c

    r9fe4db3 r65d7b0a  
    7777        async_wait_for(message, &result);
    7878       
    79         if (rc != EOK) {
    80                 munmap(*packet, size);
     79        if (rc != EOK)
    8180                return rc;
    82         }
    8381       
    8482        rc = pm_add(*packet);
  • uspace/srv/net/net/packet_server.c

    r9fe4db3 r65d7b0a  
    304304static int packet_reply(packet_t *packet)
    305305{
     306        if (!packet_is_valid(packet))
     307                return EINVAL;
     308       
    306309        ipc_callid_t callid;
    307310        size_t size;
    308 
    309         if (!packet_is_valid(packet))
    310                 return EINVAL;
    311 
    312311        if (!async_share_in_receive(&callid, &size)) {
    313312                async_answer_0(callid, EINVAL);
    314313                return EINVAL;
    315314        }
    316 
     315       
    317316        if (size != packet->length) {
    318317                async_answer_0(callid, ENOMEM);
     
    375374        case NET_PACKET_GET:
    376375                packet = pm_find(IPC_GET_ID(*call));
    377                 if (!packet_is_valid(packet)) {
     376                if (!packet_is_valid(packet))
    378377                        return ENOENT;
    379                 }
     378               
    380379                return packet_reply(packet);
    381380       
Note: See TracChangeset for help on using the changeset viewer.