diff options
-rw-r--r-- | samsung-ipc/device/crespo/crespo_ipc.c | 2 | ||||
-rw-r--r-- | samsung-ipc/device/xmm6260/xmm6260_ipc.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c index 5bf6268..502da21 100644 --- a/samsung-ipc/device/crespo/crespo_ipc.c +++ b/samsung-ipc/device/crespo/crespo_ipc.c @@ -638,7 +638,7 @@ int crespo_ipc_common_data_set_fd(void *io_data, int fd) return -1; common_data = (int *) io_data; - common_data = &fd; + *common_data = fd; return 0; } diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.c b/samsung-ipc/device/xmm6260/xmm6260_ipc.c index 6f4d8ec..f4de617 100644 --- a/samsung-ipc/device/xmm6260/xmm6260_ipc.c +++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.c @@ -368,8 +368,7 @@ int xmm6260_ipc_common_data_set_fd(void *io_data, int fd) return -1; common_data = (int *) io_data; - // won't work - common_data = &fd; + *common_data = fd; return 0; } |