Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f2962621 in mainline for uspace/lib/usbvirt/src/callback.c


Ignore:
Timestamp:
2010-12-17T10:14:01Z (11 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master
Children:
6e5dc07
Parents:
9223dc5c (diff), 11658b64 (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 usb/development

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/src/callback.c

    r9223dc5c rf2962621  
    4040#include <mem.h>
    4141
    42 #include "hub.h"
    43 #include "device.h"
    4442#include "private.h"
    4543
     
    155153         * If the request was processed, we will send data back.
    156154         */
    157         if (rc == EOK) {
     155        if ((rc == EOK) && (expected_len > 0)) {
    158156                size_t receive_len;
    159157                ipc_callid_t callid;
     
    203201               
    204202                callid = async_get_call(&call);
    205                 switch (IPC_GET_METHOD(call)) {
     203                switch (IPC_GET_IMETHOD(call)) {
    206204                        case IPC_M_PHONE_HUNGUP:
    207205                                ipc_answer_0(callid, EOK);
Note: See TracChangeset for help on using the changeset viewer.