Re: [PATCH for-next V3 00/11] Add RoCE v2 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?


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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux