Changeset 889cdb1 in mainline


Ignore:
Timestamp:
2018-10-28T21:36:49Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
184f2f8a
Parents:
bf05c74
Message:

Always answer the IPC_M_PHONE_HUNGUP message

Location:
uspace
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/adb-kbd/adb-kbd.c

    rbf05c74 r889cdb1  
    142142
    143143                if (!IPC_GET_IMETHOD(call)) {
    144                         /* TODO: Handle hangup */
     144                        async_answer_0(&call, EOK);
    145145                        return;
    146146                }
  • uspace/lib/c/generic/bd.c

    rbf05c74 r889cdb1  
    207207
    208208                if (!IPC_GET_IMETHOD(call)) {
    209                         /* TODO: Handle hangup */
     209                        async_answer_0(&call, EOK);
    210210                        return;
    211211                }
  • uspace/lib/c/generic/inet.c

    rbf05c74 r889cdb1  
    241241
    242242                if (!IPC_GET_IMETHOD(call)) {
    243                         /* TODO: Handle hangup */
     243                        async_answer_0(&call, EOK);
    244244                        return;
    245245                }
  • uspace/lib/c/generic/inet/tcp.c

    rbf05c74 r889cdb1  
    825825                if (!IPC_GET_IMETHOD(call)) {
    826826                        /* Hangup*/
     827                        async_answer_0(&call, EOK);
    827828                        goto out;
    828829                }
  • uspace/lib/c/generic/inet/udp.c

    rbf05c74 r889cdb1  
    502502                if (!IPC_GET_IMETHOD(call)) {
    503503                        /* Hangup */
     504                        async_answer_0(&call, EOK);
    504505                        goto out;
    505506                }
  • uspace/lib/c/generic/inetping.c

    rbf05c74 r889cdb1  
    214214
    215215                if (!IPC_GET_IMETHOD(call)) {
    216                         /* TODO: Handle hangup */
     216                        async_answer_0(&call, EOK);
    217217                        return;
    218218                }
  • uspace/lib/c/generic/io/input.c

    rbf05c74 r889cdb1  
    173173
    174174                if (!IPC_GET_IMETHOD(call)) {
    175                         /* TODO: Handle hangup */
     175                        async_answer_0(&call, EOK);
    176176                        return;
    177177                }
  • uspace/lib/c/generic/iplink.c

    rbf05c74 r889cdb1  
    288288
    289289                if (!IPC_GET_IMETHOD(call)) {
    290                         /* TODO: Handle hangup */
     290                        async_answer_0(&call, EOK);
    291291                        return;
    292292                }
  • uspace/lib/c/generic/loc.c

    rbf05c74 r889cdb1  
    6363
    6464                if (!IPC_GET_IMETHOD(call)) {
    65                         /* TODO: Handle hangup */
     65                        async_answer_0(&call, EOK);
    6666                        return;
    6767                }
  • uspace/lib/drv/generic/driver.c

    rbf05c74 r889cdb1  
    345345                async_get_call(&call);
    346346
    347                 if (!IPC_GET_IMETHOD(call))
     347                if (!IPC_GET_IMETHOD(call)) {
     348                        async_answer_0(&call, EOK);
    348349                        break;
     350                }
    349351
    350352                switch (IPC_GET_IMETHOD(call)) {
  • uspace/lib/fs/libfs.c

    rbf05c74 r889cdb1  
    290290                async_get_call(&call);
    291291
    292                 if (!IPC_GET_IMETHOD(call))
     292                if (!IPC_GET_IMETHOD(call)) {
     293                        async_answer_0(&call, EOK);
    293294                        return;
     295                }
    294296
    295297                switch (IPC_GET_IMETHOD(call)) {
  • uspace/lib/graph/graph.c

    rbf05c74 r889cdb1  
    517517
    518518                if (!IPC_GET_IMETHOD(call)) {
    519                         async_answer_0(&call, EINVAL);
     519                        async_answer_0(&call, EOK);
    520520                        break;
    521521                }
     
    577577
    578578                if (!IPC_GET_IMETHOD(call)) {
    579                         async_answer_0(&call, EINVAL);
     579                        async_answer_0(&call, EOK);
    580580                        break;
    581581                }
  • uspace/srv/clipboard/clipboard.c

    rbf05c74 r889cdb1  
    161161                async_get_call(&call);
    162162
    163                 if (!IPC_GET_IMETHOD(call))
    164                         break;
     163                if (!IPC_GET_IMETHOD(call)) {
     164                        async_answer_0(&call, EOK);
     165                        break;
     166                }
    165167
    166168                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/devman/client_conn.c

    rbf05c74 r889cdb1  
    754754                async_get_call(&call);
    755755
    756                 if (!IPC_GET_IMETHOD(call))
    757                         break;
     756                if (!IPC_GET_IMETHOD(call)) {
     757                        async_answer_0(&call, EOK);
     758                        break;
     759                }
    758760
    759761                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/devman/drv_conn.c

    rbf05c74 r889cdb1  
    600600                async_get_call(&call);
    601601
    602                 if (!IPC_GET_IMETHOD(call))
    603                         break;
     602                if (!IPC_GET_IMETHOD(call)) {
     603                        async_answer_0(&call, EOK);
     604                        break;
     605                }
    604606
    605607                if (IPC_GET_IMETHOD(call) != DEVMAN_DRIVER_REGISTER) {
  • uspace/srv/hid/compositor/compositor.c

    rbf05c74 r889cdb1  
    10271027
    10281028                        if (!IPC_GET_IMETHOD(call)) {
     1029                                async_answer_0(&call, EOK);
    10291030                                comp_window_close(win, &call);
    10301031                                window_destroy(win);
  • uspace/srv/hid/input/ctl/kbdev.c

    rbf05c74 r889cdb1  
    161161
    162162                if (!IPC_GET_IMETHOD(call)) {
     163                        async_answer_0(&call, EOK);
    163164                        kbdev_destroy(kbdev);
    164165                        return;
  • uspace/srv/hid/input/proto/mousedev.c

    rbf05c74 r889cdb1  
    8080
    8181                if (!IPC_GET_IMETHOD(call)) {
     82                        async_answer_0(&call, EOK);
    8283                        mousedev_destroy(mousedev);
    8384                        return;
  • uspace/srv/hid/isdv4_tablet/main.c

    rbf05c74 r889cdb1  
    8181                async_get_call(&call);
    8282
    83                 if (!IPC_GET_IMETHOD(call))
     83                if (!IPC_GET_IMETHOD(call)) {
     84                        async_answer_0(&call, EOK);
    8485                        break;
     86                }
    8587
    8688                async_answer_0(&call, ENOTSUP);
  • uspace/srv/loader/main.c

    rbf05c74 r889cdb1  
    376376                async_get_call(&call);
    377377
    378                 if (!IPC_GET_IMETHOD(call))
     378                if (!IPC_GET_IMETHOD(call)) {
     379                        async_answer_0(&call, EOK);
    379380                        exit(0);
     381                }
    380382
    381383                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/locsrv/locsrv.c

    rbf05c74 r889cdb1  
    14131413                async_get_call(&call);
    14141414
    1415                 if (!IPC_GET_IMETHOD(call))
    1416                         break;
     1415                if (!IPC_GET_IMETHOD(call)) {
     1416                        async_answer_0(&call, EOK);
     1417                        break;
     1418                }
    14171419
    14181420                switch (IPC_GET_IMETHOD(call)) {
     
    14671469                async_get_call(&call);
    14681470
    1469                 if (!IPC_GET_IMETHOD(call))
    1470                         break;
     1471                if (!IPC_GET_IMETHOD(call)) {
     1472                        async_answer_0(&call, EOK);
     1473                        break;
     1474                }
    14711475
    14721476                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/logger/ctl.c

    rbf05c74 r889cdb1  
    7575                async_get_call(&call);
    7676
    77                 if (!IPC_GET_IMETHOD(call))
     77                if (!IPC_GET_IMETHOD(call)) {
     78                        async_answer_0(&call, EOK);
    7879                        break;
     80                }
    7981
    8082                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/logger/writer.c

    rbf05c74 r889cdb1  
    109109                async_get_call(&call);
    110110
    111                 if (!IPC_GET_IMETHOD(call))
     111                if (!IPC_GET_IMETHOD(call)) {
     112                        async_answer_0(&call, EOK);
    112113                        break;
     114                }
    113115
    114116                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/net/ethip/ethip_nic.c

    rbf05c74 r889cdb1  
    300300
    301301                if (!IPC_GET_IMETHOD(call)) {
    302                         /* TODO: Handle hangup */
     302                        async_answer_0(&call, EOK);
    303303                        return;
    304304                }
  • uspace/srv/ns/ns.c

    rbf05c74 r889cdb1  
    129129
    130130        (void) ns_task_disconnect(&call);
     131        async_answer_0(&call, EOK);
    131132}
    132133
  • uspace/srv/vfs/vfs.c

    rbf05c74 r889cdb1  
    6262                async_get_call(&call);
    6363
    64                 if (!IPC_GET_IMETHOD(call))
     64                if (!IPC_GET_IMETHOD(call)) {
     65                        async_answer_0(&call, EOK);
    6566                        break;
     67                }
    6668
    6769                switch (IPC_GET_IMETHOD(call)) {
  • uspace/srv/vfs/vfs_ipc.c

    rbf05c74 r889cdb1  
    330330                async_get_call(&call);
    331331
    332                 if (!IPC_GET_IMETHOD(call))
    333                         break;
     332                if (!IPC_GET_IMETHOD(call)) {
     333                        async_answer_0(&call, EOK);
     334                        break;
     335                }
    334336
    335337                switch (IPC_GET_IMETHOD(call)) {
Note: See TracChangeset for help on using the changeset viewer.