Ignore:
Timestamp:
2011-12-26T17:21:21Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b56a8dd
Parents:
cf5c05c0 (diff), 7e1b130 (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:

Mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/packet_remote.c

    rcf5c05c0 rb39eb79  
    6666    packet_id_t packet_id, size_t size)
    6767{
    68         *packet = (packet_t *) as_get_mappable_page(size);
    69        
    7068        async_exch_t *exch = async_exchange_begin(sess);
    7169        ipc_call_t answer;
    7270        aid_t message = async_send_1(exch, NET_PACKET_GET, packet_id, &answer);
    73         int rc = async_share_in_start_0_0(exch, *packet, size);
     71        int rc = async_share_in_start_0_0(exch, size, (void *) packet);
    7472        async_exchange_end(exch);
    7573       
     
    7775        async_wait_for(message, &result);
    7876       
    79         if (rc != EOK) {
    80                 munmap(*packet, size);
     77        if (rc != EOK)
    8178                return rc;
    82         }
     79       
     80        if (packet == (void *) -1)
     81                return ENOMEM;
    8382       
    8483        rc = pm_add(*packet);
Note: See TracChangeset for help on using the changeset viewer.