Message ID | 20190102131318.5765-10-honli@redhat.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 71DF991E for <patchwork-linux-rdma@patchwork.kernel.org>; Wed, 2 Jan 2019 13:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 622D428813 for <patchwork-linux-rdma@patchwork.kernel.org>; Wed, 2 Jan 2019 13:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56AC82884B; Wed, 2 Jan 2019 13:14:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03A4E28813 for <patchwork-linux-rdma@patchwork.kernel.org>; Wed, 2 Jan 2019 13:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729902AbfABNOR (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Wed, 2 Jan 2019 08:14:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35698 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbfABNOR (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Wed, 2 Jan 2019 08:14:17 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C8A465855; Wed, 2 Jan 2019 13:14:17 +0000 (UTC) Received: from localhost (ovpn-12-97.pek2.redhat.com [10.72.12.97]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F0B6660123; Wed, 2 Jan 2019 13:14:16 +0000 (UTC) From: Honggang Li <honli@redhat.com> To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li <honli@redhat.com> Subject: [ibsim patch 10/23] sim_cmd.c: do_set_guid should dereference the char pointer Date: Wed, 2 Jan 2019 21:13:05 +0800 Message-Id: <20190102131318.5765-10-honli@redhat.com> In-Reply-To: <20190102131318.5765-1-honli@redhat.com> References: <20190102131318.5765-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 02 Jan 2019 13:14:17 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[ibsim,01/23] move sim_cmd_file into ibsim/sim_cmd.c
|
expand
|
On 1/2/2019 8:13 AM, Honggang Li wrote:
> Signed-off-by: Honggang Li <honli@redhat.com>
Thanks. Applied.
-- Hal
diff --git a/ibsim/sim_cmd.c b/ibsim/sim_cmd.c index fa5ff9baea6b..e2fe6ba6dddb 100644 --- a/ibsim/sim_cmd.c +++ b/ibsim/sim_cmd.c @@ -494,7 +494,7 @@ static int do_set_guid(FILE * f, char *line) while (isspace(*s)) s++; - if (!s) + if (!*s) return 0; new_guid = strtoull(s, &end, 0);
Signed-off-by: Honggang Li <honli@redhat.com> --- ibsim/sim_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)