[Bugfix][T106BUG-46,47,48,51,54]Fixed the problem caused by CPU PATCH

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

Change-Id: I65ae117347640cdd1afbdd1180f4086d6f50ab2d
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
index 6074897..36f368b 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
@@ -118,14 +118,21 @@
 		if(FD_FAR_PS[ilde_idx] >= 0)

 		{

 			node = add_new_channel(FD_FAR_PS[ilde_idx],FAR_PS);

-			if(0 == at_strncmp(name, "/dev/rpmsg35", strlen(name)) ||

-				0 == at_strncmp(name, "/dev/rpmsg37", strlen(name)) ||

-				0 == at_strncmp(name, "/dev/rpmsg38", strlen(name)) ||

-				0 == at_strncmp(name, "/dev/rpmsg39", strlen(name))) {

-				node->attribution |= 1<<CH_AUTOIND;

-			}

-			//if(node != NULL &&(strstr(name, "/dev/ttyGS0") != NULL || strstr(name, "/dev/ttyGS1") != NULL))

-				node->reserved = 0;//×÷ΪԤÁôͨµÀ£¬ÔÚÇëÇóÃüÁîÑ¡Ôñfarpsʱºò£¬»áÑ¡Ôñ·¢ËÍ

+			if(node != NULL) {

+				if(0 == at_strncmp(name, "/dev/rpmsg35", strlen(name)) ||

+					0 == at_strncmp(name, "/dev/rpmsg37", strlen(name)) ||

+					0 == at_strncmp(name, "/dev/rpmsg38", strlen(name)) ||

+					0 == at_strncmp(name, "/dev/rpmsg39", strlen(name))) {

+					node->attribution |= 1<<CH_AUTOIND;

+				}

+				//if(node != NULL &&(strstr(name, "/dev/ttyGS0") != NULL || strstr(name, "/dev/ttyGS1") != NULL))

+				if((0 == at_strncmp(name, "/dev/rpmsg36", strlen(name)) || 0 == at_strncmp(name, "/dev/rpmsg37", strlen(name)))) {

+					node->reserved = 0;

+				}

+				else {

+					node->reserved = 1;

+				}

+			}			

 			memcpy(g_farps_port_info[ilde_idx].name,name,strlen(name));

 			g_farps_port_info[ilde_idx].fd = FD_FAR_PS[ilde_idx];

 			g_farps_port_info[ilde_idx].state = 1;