[Bugfix][T106][bug-view-90][AUTOSUSPEND]Fixed the issue where lock names with a length greater than 64 could still be successfully created

Only Configure: NO
Affected branch: master
Affected module: autosuspend
Is it affected on both ZXIC and MTK:only ZXIC
Self-test: Yes
Doc Update:No

Change-Id: I5579ea5c2ea5aff21539abee17284a9933290df3
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
index bb659ef..6fbedd5 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -362,7 +362,7 @@
 int qser_wakelock_create(const char *name, size_t len)
 {
     int ret;
-    if(name == NULL)
+    if((name == NULL) || (strlen(name) > 64))
     {
         return E_INPUT_ERROR;
     }