From 6a53e1f3eb068baf337111bd57058ff87b0fcc2d Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Tue, 22 Mar 2022 21:36:16 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20637de91=20from=20https://gitee.com/arvi?= =?UTF-8?q?nzzz/kernel=5Fliteos=5Fm/pulls/652=20fix:=20=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: I4c69ab116920db527b39070038d36e7f0bd4e331 --- components/net/lwip-2.1/porting/src/api_shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/net/lwip-2.1/porting/src/api_shell.c b/components/net/lwip-2.1/porting/src/api_shell.c index 222134a8..412b64ae 100644 --- a/components/net/lwip-2.1/porting/src/api_shell.c +++ b/components/net/lwip-2.1/porting/src/api_shell.c @@ -558,7 +558,7 @@ u32_t OsShellPing(int argc, const char **argv) return LOS_NOK; } - parg = (u32_t *)malloc(4 * sizeof(int)); + parg = (u32_t *)malloc(4 * sizeof(int)); /* 4: number of args */ if (parg == NULL) { return LOS_NOK; } @@ -577,7 +577,7 @@ u32_t OsShellPing(int argc, const char **argv) stPingTask.pfnTaskEntry = (TSK_ENTRY_FUNC)ping_cmd; stPingTask.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; stPingTask.pcName = "ping_task"; - stPingTask.usTaskPrio = 8; /* higher than shell */ + stPingTask.usTaskPrio = 8; /* 8: higher than shell */ stPingTask.uwResved = LOS_TASK_STATUS_DETACHED; stPingTask.uwArg = (UINTPTR)parg; ret = LOS_TaskCreate((UINT32 *)(&ping_taskid), &stPingTask);