All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matan Barak <matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Eran Ben Elisha <eranbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Majd Dibbiny <majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH for-next V3 00/11] Add RoCE v2 support
Date: Wed, 30 Dec 2015 13:14:50 +0200	[thread overview]
Message-ID: <5683BCAA.80301@mellanox.com> (raw)
In-Reply-To: <5683BA79.2000406-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>



On 12/30/2015 1:05 PM, Or Gerlitz wrote:
> On 12/30/2015 12:48 PM, Matan Barak wrote:
>>
>>
>> On 12/30/2015 8:04 AM, Or Gerlitz wrote:
>>> Hi Matan,
>>>
>>> I see these two smatch complaints on code added with this series, can
>>> you please take a look?
>>>
>>> drivers/infiniband/core/addr.c:503 rdma_resolve_ip_route() warn:
>>> variable dereferenced before check 'src_addr' (see line 500)
>>> drivers/infiniband/core/cma_configfs.c:172 make_cma_ports() warn: double
>>> check that we're allocating correct size: 8 vs 128
>>>
>>
>> I'll send fixes for both of them. Thanks for posting this.
>
> when the same smatch runs on older gcc, it produces more warnings, are
> they false-positives?
>
>

Yeah, false positives - cma_configfs_params_get returns 0 iff both 
cma_dev and group are valid.

>> drivers/infiniband/core/cma_configfs.c: In function
>> ?default_roce_mode_store?:
>> drivers/infiniband/core/cma_configfs.c:123: warning: ?cma_dev? may be
>> used uninitialized in this function
>> drivers/infiniband/core/cma_configfs.c:124: warning: ?group? may be
>> used uninitialized in this function
>> drivers/infiniband/core/cma_configfs.c: In function
>> ?default_roce_mode_show?:
>> drivers/infiniband/core/cma_configfs.c:102: warning: ?cma_dev? may be
>> used uninitialized in this function
>> drivers/infiniband/core/cma_configfs.c:103: warning: ?group? may be
>> used uninitialized in this function
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2015-12-30 11:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-23 12:56 [PATCH for-next V3 00/11] Add RoCE v2 support Matan Barak
     [not found] ` <1450875417-19262-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-23 12:56   ` [PATCH for-next V3 01/11] IB/core: Add gid_type to gid attribute Matan Barak
     [not found]     ` <1450875417-19262-2-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-23 13:40       ` Leon Romanovsky
     [not found]         ` <20151223134053.GB3599-2ukJVAZIZ/Y@public.gmane.org>
2015-12-23 15:21           ` Matan Barak
     [not found]             ` <CAAKD3BBipJ_2vr2=UYnUZhRqFhfp=23i+rG4FRx089cZ=6rTVQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-23 15:38               ` Sagi Grimberg
2015-12-23 12:56   ` [PATCH for-next V3 02/11] IB/cm: Use the source GID index type Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 03/11] IB/core: Add gid attributes to sysfs Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 04/11] IB/core: Add ROCE_UDP_ENCAP (RoCE V2) type Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 05/11] IB/core: Add rdma_network_type to wc Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 06/11] IB/core: Move rdma_is_upper_dev_rcu to header file Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 07/11] IB/core: Validate route in ib_init_ah_from_wc and ib_init_ah_from_path Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 08/11] IB/rdma_cm: Add wrapper for cma reference count Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 09/11] IB/cma: Add configfs for rdma_cm Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 10/11] IB/core: Initialize UD header structure with IP and UDP headers Matan Barak
     [not found]     ` <1450875417-19262-11-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30  5:57       ` Or Gerlitz
     [not found]         ` <56837252.70705-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30 10:35           ` Matan Barak
2015-12-23 12:56   ` [PATCH for-next V3 11/11] IB/cma: Join and leave multicast groups with IGMP Matan Barak
2015-12-23 13:25   ` [PATCH for-next V3 00/11] Add RoCE v2 support Matan Barak
2015-12-23 15:48   ` Doug Ledford
2015-12-23 15:51   ` Doug Ledford
2015-12-30  6:04   ` Or Gerlitz
     [not found]     ` <568373E4.2080409-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30 10:48       ` Matan Barak
     [not found]         ` <5683B662.4070609-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30 11:05           ` Or Gerlitz
     [not found]             ` <5683BA79.2000406-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-30 11:14               ` Matan Barak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5683BCAA.80301@mellanox.com \
    --to=matanb-vpraknaxozvwk0htik3j/w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=eranbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.