[Replicant] [libsamsung-ipc] [PATCH] sec: fix SIM not found due to typo while switch to Linux code style

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Tue Sep 8 20:29:35 UTC 2020


The bug being fixed in this commit was introduced in the following commit:
    b98a418 samsung-ipc: sec: switch to Linux code style
    b98a4188db6350794e8e7139065d71a25314e18c

With that bug, on Replicant 6.0 0004 RC2, the SIM card is not found
anymore, but some modem functionality still worked like getting the
IMEI through the settings.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 samsung-ipc/sec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c
index 31b73de..b0ab647 100644
--- a/samsung-ipc/sec.c
+++ b/samsung-ipc/sec.c
@@ -201,8 +201,8 @@ void *ipc_sec_rsim_access_extract(const void *data, size_t size)
 
 	if (data == NULL ||
 	    size < sizeof(struct ipc_sec_rsim_access_response_header)) {
-	}
 		return NULL;
+	}
 
 	header = (struct ipc_sec_rsim_access_response_header *) data;
 	if (header->length == 0 ||
-- 
2.28.0



More information about the Replicant mailing list