Changes in / [0f09d4ea:1c1c736] in mainline
- Location:
- uspace/srv/hid/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/kbdev.c
r0f09d4ea r1c1c736 111 111 printf("%s: Failed allocating device structure for '%s'.\n", 112 112 NAME, kdev->svc_name); 113 async_hangup(sess);114 113 return -1; 115 114 } … … 170 169 callid = async_get_call(&call); 171 170 if (!IPC_GET_IMETHOD(call)) { 172 kbdev_destroy(kbdev);171 /* XXX Handle hangup */ 173 172 return; 174 173 } -
uspace/srv/hid/input/proto/mousedev.c
r0f09d4ea r1c1c736 54 54 /** Link to generic mouse device */ 55 55 mouse_dev_t *mouse_dev; 56 57 /** Session to mouse device */ 58 async_sess_t *sess; 56 59 } mousedev_t; 57 60 … … 69 72 static void mousedev_destroy(mousedev_t *mousedev) 70 73 { 74 if (mousedev->sess != NULL) 75 async_hangup(mousedev->sess); 76 71 77 free(mousedev); 72 78 } … … 83 89 84 90 if (!IPC_GET_IMETHOD(call)) { 85 mousedev_destroy(mousedev);91 /* XXX Handle hangup */ 86 92 return; 87 93 } … … 123 129 printf("%s: Failed allocating device structure for '%s'.\n", 124 130 NAME, mdev->svc_name); 125 async_hangup(sess);126 131 return -1; 127 132 } 133 134 mousedev->sess = sess; 128 135 129 136 async_exch_t *exch = async_exchange_begin(sess); … … 132 139 mdev->svc_name); 133 140 mousedev_destroy(mousedev); 134 async_hangup(sess);135 141 return -1; 136 142 } … … 138 144 int rc = async_connect_to_me(exch, 0, 0, 0, mousedev_callback_conn, mousedev); 139 145 async_exchange_end(exch); 140 async_hangup(sess);141 146 142 147 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.