diff options
Diffstat (limited to 'samsung-ipc/ipc.c')
-rw-r--r-- | samsung-ipc/ipc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index 7f8d7ab..d73cac8 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -147,6 +147,11 @@ void ipc_client_send(struct ipc_client *client, const int command, const int typ int ipc_client_recv(struct ipc_client *client, struct ipc_response *response) { - return -1; + if (client == NULL || + client->ops == NULL || + client->ops->recv == NULL) + return -1; + + return client->ops->recv(client, response); } |